add the ability to disable mapToScale rounding (precision=false)
This commit is contained in:
parent
0ccdccaab6
commit
f4238e95da
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
|
||||
value = Math.max(Math.min(rangeOut[0],rangeOut[1]),Math.min(value,Math.max(rangeOut[0],rangeOut[1])))
|
||||
|
||||
value = Math.round(value*roundFactor)/roundFactor
|
||||
if (precision!==false) value = Math.round(value*roundFactor)/roundFactor
|
||||
|
||||
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue