WLJS LogoWLJS Notebook

IntegerPart

IntegerPart[x] gives the integer part of x.

Examples

Integer part of positive:

IntegerPart[3.7]
(* 3 *)

Integer part of negative:

IntegerPart[-3.7]
(* -3 *)

Please visit the official Wolfram Language Reference for more details.

On this page