Returns the decimal part of a number
Syntax
Usage
result = Frac( number )
Parameters
number
the number or expression to get the fraction part of.
Return Value
Returns the fractional part of a number or expression.
Description
Equivalent to:
(number - Fix(number)).
The
Frac unary
Operator can be overloaded with user defined types.
Example
Print frac(10.625) '' will print 0.625
Print frac(-10.625) '' will print -0.625
Dialect Differences
- In the -lang qb dialect, this operator cannot be overloaded.
Differences from QB
See also