Round

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

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


Arguments

Parameter Name Default Value Meaning
x number number to round

Examples

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

See also