[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Calculate integer part of floating point value.
Source position: mathh.inc line 80
function int( |
d: ValReal |
):ValReal; |
Int returns the integer part of any Real X, as a Real.
None.
|
Return fractional part of floating point value. |
|
|
Round floating point value to nearest integer number. |
Program Example34; { Program to demonstrate the Int function. } begin Writeln (Int(123.456):0:1); { Prints 123.0 } Writeln (Int(-123.456):0:1); { Prints -123.0 } end.
lazarus-ccr.sourceforge.net |