Skip to Main Content Skip to Search
Product Documentation

cur2frac - Decimal currency values to fractional values

Syntax

Fraction = cur2frac(Decimal, Denominator)

Description

Fraction = cur2frac(Decimal, Denominator) converts decimal currency values to fractional values. Fraction is returned as a string.

Examples

Fraction = cur2frac(12.125, 8)

returns Fraction = 12.1, a string.

See Also

cur2str | frac2cur

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS