Difference between revisions of "MC-Basic:ROUND"
m (Miborich moved page Axystems:MC-Basic:ROUND to MC-Basic:ROUND: Global renaming of Axystems: namespace into (Main):) |
|||
Line 46: | Line 46: | ||
* [[MC-Basic:INT|INT]] | * [[MC-Basic:INT|INT]] | ||
− | [[Category | + | [[Category:MC-Basic:Arithmetic Functions|ROUND]] |
}} | }} |
Revision as of 09:12, 22 May 2014
Rounds the argument to the nearest even whole number so the cumulative error in a random sample is never more than 0.5. For example:
Value Round to nearest even
5.5 6.0
4.5 4.0
3.5 4.0
2.5 2.0
1.5 2.0
Syntax
Round(<expression>)
Availability
All versions
Type
Double
Range
± MaxDouble
Scope
Configuration, Task or Terminal
Limitations
Read only
Examples
?Round(4.5)
Var1 = Round(Var2)