numberis based on the IEEE 754 standard, which means floating-point arithmetic applies. The classic example is
0.1 + 0.2returns
0.30000000000000004, the result also shows the decimal precision limit of 17.
bigintprimitive type was introduced in ES2020, it can safely represent integers bigger than
9007199254740992 === 9007199254740993returns
truewhich is wrong but with BigInt,
9007199254740992n === 9007199254740993nreturns
falseas expected. Note that as of current, the
Mathobject doesn’t work with
The Malaysian flag: before the formation of Malaysia in year 1963, the flag for Federation of Malaya had 11 stripes and the star had 11 points as opposed to 14 for both now. The original submission of the design had a five-pointed star.
This is my 9th weekly post, thank you for reading and if you have got any feedback, do let me know!
- The History and Design Chronology of JALUR GEMILANG by Muhamad Razif Nasruddin and Zarul Nazli bin Zulkhurnain.