FRAC function

Purpose

Return the fractional part of a floating-point number.

Syntax

h = FRAC(float_expression)

Remarks

FRAC returns the number after the decimal point of a floating-point number or expression.  FRAC rounds the result of fit the precision of the target h, as per IEEE specifications.

See also

CEIL, CINT, FIX, INT, ROUND

Example

h# = FRAC(10.25#)  ' = 0.25# (Double-precision)