Skip to Content

INT

A function truncating a real number to the lower integer.

X=INT(Y)
INT(99.8) =99 INT(-12) =-12 INT(-12.1) =-13

This function converts a real number (one with a decimal part) to the nearest integer (whole number) less than the number supplied. Thus,

INT(14.56)

gives 14, whereas

INT(-14.5)

gives -15.

Syntax

<n-var>=INT<numeric>

Associated Keywords

None

Last updated on