Use the rounding functionality described in section 8.2, Not. Each of the following allows the module or increment size to be specified:
-
round(<value>, <moduleSize>) Rounds specified value to the nearest increment of modulSize, e.g. round(2.1, 0.25) results in 2.0
-
roundUp(<value>, <moduleSize>) Rounds specified value up to the next increment of modulSize, e.g. roundUp(2.1, 0.25) results in 2.25
-
roundDown(<value>, <moduleSize>) Rounds specified value down to the nearest increment of modulSize, e.g. roundDown(2.1, 0.25) results in 2.0.
In all cases, if the original value matches a module size, that same value is the result, so roundUp(2.0, 0.25) results in 2.0. If a module size is not specified, the value is rounded to the nearest whole number.
Comments
0 comments
Please sign in to leave a comment.