You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was tinkering with some Bootstrap mixins, in this case, the one for generating a grid system.
I noticed some weird rounding for one value (.col-sm-11-20) on the output when generating a simple 20-columns grid.
I tested both with 1.3.3 and 1.4.0-beta at http://less2css.org/
thats strange.. but I assume its just JavaScripts terrible number system. I did think we rounded a certain number of places so we weren't effected by it - that then causes issues for people wanting a million decimal places.
Is this causing an issue or is it just that it looks strange? I wouldn't be too worried by it.
Haven't yet tested if it causes any issue, particularly when complementing it with one or some columns that add up to the remaining 45%. Will check whenever possible and let you know.
"...due to the way floats are represented, you may not get a clean number that's to two decimal places. For display purposes, always do num.toFixed(2)."
I was tinkering with some Bootstrap mixins, in this case, the one for generating a grid system.
I noticed some weird rounding for one value (
.col-sm-11-20
) on the output when generating a simple 20-columns grid.I tested both with 1.3.3 and 1.4.0-beta at http://less2css.org/
Is this a bug or anything to be worried about?
Input
Output
The text was updated successfully, but these errors were encountered: