Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 03

Numbers and BigInt

How JavaScript numbers work as IEEE 754 doubles, their special values, and when BigInt takes over.
5 questions
  1. 010Why is 0.1 + 0.2 !== 0.3?Coming soonCoreeasy
  2. 020What are NaN, -0, and Infinity, and how do you test for them?Coming soonmedium
  3. 030What's Number.MAX_SAFE_INTEGER, and when do you need BigInt?Coming soonmedium
  4. 040Number() vs parseInt() vs unary + — how do they differ?Coming sooneasy
  5. 050How do you sum floating-point numbers accurately?Coming soonmedium