Rounds a number to the nearest positional notation index (or the nearest place value).
// Returns 1240const rounded = Chalkboard.numb.roundTo(1237, 10); Copy
// Returns 1240const rounded = Chalkboard.numb.roundTo(1237, 10);
Number
The positional notation index (or place value)
Rounds a number to the nearest positional notation index (or the nearest place value).
Example