This option allows users to limit the default precision to what's defined in precision, but doesn't round the number if the rounded number isn't equal to the number itself. This may sound a bit vague, so let's demonstrate this with an example:
Let's assume you have configured precision: 5 and allowRounding: false:
calc(100% / 3) will output calc(100% / 3) because calc(100% / 3) != 33.33333%
calc(100% / 4) will output 25% because calc(100% / 4) == 25%
What's the advantage? We never have rounded numbers which can cause issues like twbs/bootstrap#27374 and we don't have expressions like calc(100% / 4) that can be simplified.
PR: #61
This option allows users to limit the default precision to what's defined in
precision, but doesn't round the number if the rounded number isn't equal to the number itself. This may sound a bit vague, so let's demonstrate this with an example:Let's assume you have configured
precision: 5andallowRounding: false:calc(100% / 3)will outputcalc(100% / 3)becausecalc(100% / 3) != 33.33333%calc(100% / 4)will output25%becausecalc(100% / 4) == 25%What's the advantage? We never have rounded numbers which can cause issues like twbs/bootstrap#27374 and we don't have expressions like
calc(100% / 4)that can be simplified.PR: #61