From 467332fffa849723009f9b71c47a997399fb63de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ata=20=C3=96zdamar?= <47065577+Lynextion@users.noreply.github.com> Date: Mon, 31 May 2021 21:35:28 +0300 Subject: [PATCH] Add to weirdness In javascript there error about calculation on decimal numbers. I was add one of them. --- sheets/_js/weirdness | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sheets/_js/weirdness b/sheets/_js/weirdness index 07b20bd..2e5ee64 100644 --- a/sheets/_js/weirdness +++ b/sheets/_js/weirdness @@ -4,6 +4,9 @@ // Null is an Object typeof null // => 'object' +// Weird decimal calculation +0.1 + 0.2 // -> 0.30000000000000004 + // Despite this, null is not an instance of an Object null instanceof Object // => false