MC-Basic:ROUND

From SoftMC-Wiki
Revision as of 16:00, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= Round(''<expression>'') |AVAILABILITY= All versions |DESCRIPTION= Rounds the argument to the nearest even whole number so the cumulative erro…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)

See Also