Category: math

Number().toFixed() Rounding Errors: Broken But Fixable

This article was originally published on David Kaye. I found a rounding bug in Number().toFixed() in every JavaScript environment I’ve tried (Chrome, Firefox, Internet Explorer, Brave, and Node.js). The fix is surprisingly simple. Read on… Warm Up I found this version of the rounding bug in toFixed() while revi...

Computer Science Distilled, Chapter 2: Complexity

This is a full chapter excerpt from Wladston Viana Ferreira Filho’s brand new book Computer Science Distilled which he has graciously allowed for us to publish here. In almost every computation, a variety of arrangements for the processes is possible. It is essential to choose that arrangement which shall tend to...

Some Math Links

I read a few stories about math lately. One of them is a story by Kevin Hartnett about Francis Su, who believes math can be a gateway to a better life. To Live Your Best Life, Do Mathematics.: Christopher, an inmate serving a long sentence for armed robbery who had begun to teach himself math from textbooks he had ord...