kytschBASIC

Put down that phone!
Please view me on real computer.

FRAC

Returns the floating point remainder (modulo) of the division of the arguments.

Example

PRINT FRAC(3.5)

LINE BREAK

DEF var%=FRAC(3.5)

PRINT var%

Output

0.5
0.5

See also

ABS | ACOS | ASIN | ATAN | BIN | EXP | FRAC | HCOS | HEX | HSIN | HTAN | LOG | LOG10 | RND | SGN | SIN | SQR | TAN