Convert a decimal number to a whole number and a given fraction (i.e., 100.5 = 100.16 where 32 is the given fraction)
Introduced in release: 1.0 Component: Generic Purpose:
Convert a decimal number into a whole number and a fraction after the decimal. The variable denom allows you to specify the denominator of the fraction. Ex. decimal number = 100.5, denom = 32, result = 100.16 (Inverse of function frac_2_dec)
Results:
The whole number followed by a decimal point followed by the fractional number is returned as the value of the function.