Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

frac2cur - Fractional currency value to decimal value

Syntax

Decimal = frac2cur(Fraction, Denominator)

Description

Decimal = frac2cur(Fraction, Denominator) converts a fractional currency value to a decimal value. Fraction is the fractional currency value input as a string, and Denominator is the denominator of the fraction.

Examples

Decimal = frac2cur('12.1', 8)

returns

 Decimal =
           12.1250

See Also

cur2frac, cur2str

  


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-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS