I have the following situation:
div {
width: calc((100% / 11) - 9.09px);
}
In the context, 100% = 1440px, and 9.09px is generated in mathematics with sass.
The results is: 94.55px, because the calc function rounds up, but I need 94.54px (round down).
How can I round down to the nearest hundredths place?
#Edit: example.
Aucun commentaire:
Enregistrer un commentaire