Tag

numeric computation

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 2, 2024 · Fundamentals

Understanding Java BigDecimal: Internal Storage, Precision, and Best Practices

This article explains the Java BigDecimal class, detailing its internal storage mechanisms, precision handling, immutable design, and common pitfalls, and provides best‑practice guidelines for constructing, comparing, dividing, and converting BigDecimal values to ensure accurate numerical computations.

BigDecimalImmutableJava
0 likes · 10 min read
Understanding Java BigDecimal: Internal Storage, Precision, and Best Practices
System Architect Go
System Architect Go
Dec 22, 2017 · Fundamentals

Understanding Floating-Point Precision Issues and Practical Solutions in Programming Languages

This article explains why all IEEE‑754 based languages suffer from floating‑point precision errors, illustrates common problematic calculations, and presents integer‑conversion techniques and library recommendations such as decimal.js to achieve accurate numeric results, especially for financial computations.

JavaScriptdecimal.jsfloating point
0 likes · 4 min read
Understanding Floating-Point Precision Issues and Practical Solutions in Programming Languages