Round

From MiniScript Wiki
Revision as of 15:13, 25 March 2022 by JoeStrout (talk | contribs)
Jump to navigation Jump to search

round rounds a number to the specified number of decimal places.

See also: floor, ceil

Arguments

Parameter Name Default Value Meaning
x number number to round

Examples

round(pi, 2)             // returns 3.14
round(12345, -3)         // returns 12000