make sure the trailing distance always round up, even if lower than 5
parent
01c8f59de6
commit
a586522d95
@ -0,0 +1,4 @@
|
|||||||
|
function roundUp(num: number, precision: number) {
|
||||||
|
precision = Math.pow(10, precision)
|
||||||
|
return Math.ceil(num * precision) / precision
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue