Remove Math.ceil from #toScale, JS has no integers/floats anyways

This commit is contained in:
Andrew Stewart 2014-03-10 15:25:39 -07:00
parent 3c6696a78f
commit 4c464f0d88
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {