Merge branch '1924-fix-1' of github.com:seven-phases-max/less.js

This commit is contained in:
Luke Page
2014-05-06 06:21:17 +01:00

View File

@@ -749,13 +749,8 @@ function clamp(val) {
}
tree.fround = function(env, value) {
var p;
if (env && (env.numPrecision != null)) {
p = Math.pow(10, env.numPrecision);
return Math.round(value * p) / p;
} else {
return value;
}
var p = env && env.numPrecision;
return (p == null) ? value : +(value + 2e-16).toFixed(p);
};
tree.functionCall = function(env, currentFileInfo) {