Skip to content

Commit bc2fe26

Browse files
committed
adding more tricky questions
1 parent 3992c0f commit bc2fe26

6 files changed

+6
-0
lines changed
Loading
Loading

Javascript/Tricky-JS-Problems/why-does-adding-two-decimals-in-javascript-produce-a-wrong-result.md

+6
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@ On repeating this for 64 bits, we are going to arrange them in ascending order t
4545
Representing it in scientific form and rounding off to the first 52 bits will yield:
4646

4747
![](assets/2020-10-06-22-05-14.png)
48+
49+
The mantissa part is ready. Now for the exponent we shall use the below calculation:
50+
51+
![](assets/2020-10-06-22-05-43.png)
52+
53+
![](assets/2020-10-06-22-06-26.png)

0 commit comments

Comments
 (0)