BigDecimal: Avoid rounding errors on decimals in JavaScript (Node.TLV 2020)

preview_player
Показать описание
By Daniel Ehrenberg.

Have you ever found yourself with a disappointing rounding error due to how Numbers work, or using awkward workarounds to avoid thinking about decimals? It's a shame that JavaScript chose binary floating point as its basic numeric type when it causes all of these problems. What can we do about it?

(c) Node.TLV 2020
Рекомендации по теме
Комментарии
Автор

¡Gracias por todo el trabajo y los esfuerzos, mis camaradas! Seguimos LUCHANDO.

Etudio
Автор

.toFixed() is extended from 0 to 20 to being 0 to 100

milestailsprower