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

expand all

Convert a Fractional Currency Value to a Decimal Value

This example shows how to convert a fractional currency value to a decimal value.

Decimal = frac2cur('12.1', 8)
Decimal =

   12.1250

See Also

|

Was this topic helpful?