FRAC
<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Numeric functions > FRAC |
Description
Return the fractional part of a number.
Syntax
n = FRAC(numeric_expression)
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
numeric_expression |
Number |
No |
Any numeric 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.
Restrictions
See also
Numeric functions, FIX, CEIL, INT, ROUND,
Examples