[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
function Trunc (x: Real): Integer; |
`Trunc' converts `x' to the next integer below its argument (i.e. truncates the numbers after the point).
`Trunc' is defined in ISO-7185 Pascal and supported by all known Pascal variants.
program TruncDemo; var Foo: Real; begin Foo := 9.876; WriteLn (Trunc (Foo)) { Prints 9 } end. |
section 9.236 Round.