Posts
All the articles I've posted.
Math.floor is not a floor
4 min readFlooring a decimal for an API that wants strings: the obvious version drops a step, the clever one rounds up past the input, and neither throws.
All the articles I've posted.
Flooring a decimal for an API that wants strings: the obvious version drops a step, the clever one rounds up past the input, and neither throws.