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

expand all

Convert Decimal Currency Values to Fractional Values

This example shows how to convert decimal currency values to fractional values.

Fraction = cur2frac(12.125, 8)
Fraction =

12.1

See Also

|

Was this topic helpful?