Round

From Lazarus wiki
Revision as of 07:57, 11 June 2013 by The1 (talk | contribs) (Created page with "Function '''Round''' rounds a real-type value to an Integer-type value. X is a real-type expression. Round returns a Longint value that is the value of X rounded t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Function Round rounds a real-type value to an Integer-type value. X is a real-type expression. Round returns a Longint value that is the value of X rounded to the nearest whole number. If X is exactly halfway between two whole numbers, the result is the number with the greatest absolute magnitude.

Declaration

function Round(X: Real): Longint;

See also: