Skip to content Skip to sidebar Skip to footer
Showing posts with the label Rounding

Add A Rounding Method To Number.prototype In Javascript

How can I simplify rounding in JavaScript? I wish that I could do it in a more elegantly in an obje… Read more Add A Rounding Method To Number.prototype In Javascript

Dithering Child Elements' Dimensions To Fill A Parent Element

Say I have a parent div with width 500px. It has 13 child elements that should fill its width. If I… Read more Dithering Child Elements' Dimensions To Fill A Parent Element