less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
17.02k stars 3.41k forks source link

Error evaluating function `round`: argument must be a number #3603

Closed miloslavkostir closed 3 years ago

miloslavkostir commented 3 years ago

Hello, it's not possible to use expression without parentheses as function argument in v 4.x?

round(@table-cell-padding-vertical / 3)  // Works in v3.x but throws Error evaluating function `round`: argument must be a number in 4.x
round((@table-cell-padding-vertical / 3))  // This works in 4.x

I haven't find anything in documentation. So is this expected behavior, or is this bug?

matthew-dean commented 3 years ago

@miloslavkostir See: https://github.com/less/less.js/releases/tag/v4.0.0

Parens-division now the default math setting