From 290f81c5525d8dbb093a2b649bb3c0a21c8f90c3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 19 Jul 2023 22:25:15 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- js-types-n-oop.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js-types-n-oop.js b/js-types-n-oop.js index 4ab3b09..8acd68b 100755 --- a/js-types-n-oop.js +++ b/js-types-n-oop.js @@ -68,10 +68,11 @@ // Numbers also have several limitations: // -// - precision, rounding errors and fractions (IEEE-754) +// - precision, rounding errors and fractions 0.1 + 0.2 == 0.3 // -> false -// XXX +// This is due to how floating point numbets ate traditionally +// implemented on CPUs, see: IEEE-754 // - large number rounding Number.MAX_SAFE_INTEGER + 10 - 10 == Number.MAX_SAFE_INTEGER