Remove Math.ceil from #toScale, JS has no integers/floats anyways
This commit is contained in:
parent
3c6696a78f
commit
4c464f0d88
|
@ -65,7 +65,7 @@ Number.prototype.fromScale = function(start, end) {
|
|||
//
|
||||
// Returns an integer representing the scaled value
|
||||
Number.prototype.toScale = function(start, end) {
|
||||
return Math.ceil(this * (Math.max(start, end) - Math.min(start, end)) + Math.min(start, end));
|
||||
return this * (Math.max(start, end) - Math.min(start, end)) + Math.min(start, end);
|
||||
};
|
||||
|
||||
var Utils = {
|
||||
|
|
Loading…
Reference in New Issue