Difference between revisions of "Trunc"
From Lazarus wiki
Jump to navigationJump to searchm (frac) |
|||
Line 1: | Line 1: | ||
+ | {{Trunc}} | ||
+ | |||
Function '''Trunc''' truncates a [[Real|real]]-type value to an [[Integer]]-type value. | Function '''Trunc''' truncates a [[Real|real]]-type value to an [[Integer]]-type value. | ||
X is a real-type expression. Trunc returns a [[Longint]] value that is the value of X rounded toward zero. | X is a real-type expression. Trunc returns a [[Longint]] value that is the value of X rounded toward zero. |
Revision as of 21:47, 22 March 2018
│
English (en) │
suomi (fi) │
русский (ru) │
Function Trunc truncates a real-type value to an Integer-type value. X is a real-type expression. Trunc returns a Longint value that is the value of X rounded toward zero.
Declaration
function Trunc(X: Real): Longint;
See also: