March 2000
Intermediate to advanced
576 pages
18h 13m
English
Int Function
function Int(X: Floating-point type): ExtendedThe Int function truncates a floating-point number
by discarding its fractional part (rounds toward zero). Note that
Int returns a floating-point number. It is not a
real function.
If X is a signaling NaN, Delphi reports runtime
error 6 (EInvalidOp).
If X is a quiet NaN, positive infinity, or
negative infinity, the result is X.
Call Trunc to truncate a floating-point number and
obtain an integer-type result.
| Frac Function, Round Function, Trunc Function |
Read now
Unlock full access