Rounds a number to a specified increment or module size. There are three different versions:
-
round(<value>, <module size>): Rounds to the nearest module, e.g. round(1.275, 0.100) = 1.300
-
roundUp(<value>, <module size>): If the value isn’t exactly on a module size, it rounds up to the next, e.g. round(1.210, 0.100) = 1.300
-
roundDown(<value>, <module size>): If the value isn’t exactly on a module size, it rounds down to the previous, e.g. round(1.275, 0.100) = 1.200
If a module size isn’t specified, it’s assumed to be 1, e.g. round(3.75) = 4.00.
Comments
0 comments
Please sign in to leave a comment.