Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
amt = 34.2;
str = '$34.20';
assert(isequal(disp_currency(amt),str))
|
2 | Pass |
amt = 91337585;
str = '$91,337,585.00';
assert(isequal(disp_currency(amt),str))
|
3 | Pass |
amt = -63234922.46;
str = '($63,234,922.46)';
assert(isequal(disp_currency(amt),str))
|
4 | Pass |
amt = 2784.9;
str = '$2,784.90';
assert(isequal(disp_currency(amt),str))
|
Find the numeric mean of the prime numbers in a matrix.
6782 Solvers
Getting the row and column location from a matrix
236 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
216 Solvers
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!