| Financial Toolbox | Search  Help Desk |
| cur2frac | Examples See Also |
Decimal currency values to fractional values.
Syntax
f = cur2frac(p, d)
Description
f = cur2frac(p, d)
converts decimal currency values to fractional values. p is the decimal currency value and d is the denominator of the fraction. f is returned as a string.
Example
f = cur2frac(12.125, 8)returns
f = 12.1, a string.
See Also
cur2str, frac2cur