Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
dec_2_frac

dec_2_frac (routine)

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.

Error Conditions: No error checking is done.

Last Mod Date: 01/18/1995© 2001 TIPS, Inc.Doc Version: 5.0