WLJS LogoWLJS Notebook

FractionalPart

FractionalPart[x] gives the fractional part of x.

Examples

Fractional part of positive number:

FractionalPart[3.7]
(* 0.7 *)

Fractional part of negative number:

FractionalPart[-2.3]
(* -0.3 *)

Please visit the official Wolfram Language Reference for more details.

On this page