mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Merge branch '1924-fix-1' of github.com:seven-phases-max/less.js
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user