|
|
|
|
|
by ridiculous_fish
3275 days ago
|
|
2/3 === .666666666666666629659232512495 is probably worse, because it can seduce you into thinking it's accurate. Why is `2 / 3 * 3 === 3`, but `1 / 3 * 3 < 3`? JS's floating-point-or-bust, combined with some weird Math semantics, makes it challenging to write numerically correct functions. |
|