[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'System' (#rtl) |
Return fractional part of floating point value.
Source position: mathh.inc line 69
function frac( |
d: ValReal |
):ValReal; |
Frac returns the non-integer part of X.
None.
|
Round floating point value to nearest integer number. |
|
|
Calculate integer part of floating point value. |
Program Example27; { Program to demonstrate the Frac function. } Var R : Real; begin Writeln (Frac (123.456):0:3); { Prints O.456 } Writeln (Frac (-123.456):0:3); { Prints -O.456 } end.
No notes exist for this page yet.