Difference between revisions of "Round"
(Created page with "===From the Scripting Manual=== ''function round(Number: real): integer;'' '''Parameter Info:''' Number (Real): Numeric value to round up/down. '''Description:''' T...") |
Tehbugerz0r (talk | contribs) |
||
Line 21: | Line 21: | ||
− | == | + | ==See also== |
− | * [ | + | * [[RoundTo]] |
[[Category:Server Scripting]][[Category:Server Scripting Functions]] | [[Category:Server Scripting]][[Category:Server Scripting Functions]] |
Latest revision as of 08:02, 25 March 2013
From the Scripting Manual
function round(Number: real): integer; Parameter Info: Number (Real): Numeric value to round up/down. Description: This function will return the rounded up/down value of parameter 'Number'
Examples
var
MyDub: double;
MyInt: integer;
begin
MyDub := 553.55;
MyInt := 42;
WriteLn(inttostr(round(MyInt))); //42
WriteLn(inttostr(round(MyDub))); //554
end;