Tag

Number

1 views collected around this technical thread.

Architecture Digest
Architecture Digest
Nov 7, 2024 · Fundamentals

Understanding Java BigDecimal: How It Guarantees Decimal Precision

This article explains how Java's BigDecimal class maintains exact decimal precision by scaling numbers to integers, detailing its class structure, key methods, and a step‑by‑step example that demonstrates the internal addition algorithm.

ArithmeticBigDecimalJava
0 likes · 6 min read
Understanding Java BigDecimal: How It Guarantees Decimal Precision
KooFE Frontend Team
KooFE Frontend Team
Aug 30, 2021 · Frontend Development

Why Does [] == ![] Evaluate to True? Unraveling JavaScript Type Conversion

This article explains JavaScript’s explicit and implicit type conversion mechanisms—including Number(), String(), Boolean(), toString and valueOf—through detailed code examples and clarifies puzzling expressions like [] == ![] and {} == !{}.

Boolean()JavaScriptNumber
0 likes · 10 min read
Why Does [] == ![] Evaluate to True? Unraveling JavaScript Type Conversion
QQ Music Frontend Team
QQ Music Frontend Team
Dec 9, 2018 · Fundamentals

Why 0.1 + 0.2 ≠ 0.3 in JavaScript? Understanding Number Precision and Fixes

This article explains why JavaScript’s Number type suffers from floating‑point precision errors, describes the IEEE‑754 double‑precision storage format, clarifies key Number properties, shows why 0.1 + 0.2 is not exactly 0.3, and provides practical code‑based solutions.

CodeIEEE-754JavaScript
0 likes · 9 min read
Why 0.1 + 0.2 ≠ 0.3 in JavaScript? Understanding Number Precision and Fixes
Qunar Tech Salon
Qunar Tech Salon
May 10, 2018 · Frontend Development

Understanding JavaScript Type Coercion: Implicit and Explicit Conversions

This article explains JavaScript's type coercion mechanisms, covering both implicit and explicit conversions for strings, numbers, booleans, objects, and symbols, and demonstrates how abstract operations like ToPrimitive, ToString, ToNumber, and ToBoolean affect runtime behavior.

Boolean()ES5Explicit Conversion
0 likes · 17 min read
Understanding JavaScript Type Coercion: Implicit and Explicit Conversions