HTBasic Help
×
Menu
Index

FRACT

Returns the fractional part of an argument.
 
 FRACT (numeric-expression)
 
Usage:
PRINT FRACT(5/3)
Fraction = FRACT(Integer+Fraction)
 
Description:
The FRACT function returns a number greater than or equal to zero and less than one. For any value of X, the formula X=INT(X)+FRACT(X) is true.
 
Back-Porting
to HP BASIC:
HTBasic allows the FRACT of a complex value, returning the fractional part of the real part of the complex value. HP BASIC gives error 620.
 
See Also: