#BigDecimal
til that for java's BigDecimal type, 1.0 /= 1 if you use .equals...
January 21, 2025 at 8:57 PM
January 21, 2025 at 9:22 PM
This is what happens if you use floating point numbers (int, double in #Java) for financial data.

Use decimal numbers (BigDecimal in Java) instead.
June 15, 2025 at 10:25 AM
BigDecimalを多用するぞーー
May 15, 2025 at 5:37 AM
'Never use double for money' is dogma, not engineering.

@stefanofago.bsky.social breaks down when double, BigDecimal, or fixed-point is the right call, and the production traps that quietly undo each one.

#java #deepdive
double, BigDecimal, or Fixed-Point?
There is an evergreen debate in the Java world: should you always use BigDecimal for money? The short answer is no. The real answer is: it depends on your computational context: the precision you ne...
blog.frankel.ch
June 14, 2026 at 5:07 PM
BigDecimal do Javinha resolve todos os problemas………
October 2, 2024 at 10:42 PM
Ich hätte mir ein Programm mit BigInteger und BigDecimal schreiben können, aber nach kurzer Überlegung dachte ich mir so: Nö.
December 24, 2024 at 3:33 PM
よし!イベPの丸め誤差を検証するためにまず丸め誤差が絶対起きないBigDecimalを用いた計算・逆算プログラムがつくれたぞ!
May 22, 2025 at 5:17 AM
New post from Stefano Fago on choosing the right numeric types in Java. Should you use double, BigDecimal, or fixed-point arithmetic? Get practical guidance on precision vs performance tradeoffs.

foojay.io/today/double...

#Java #Programming
double, BigDecimal, or Fixed-Point? Precision, Performance, and Sane Choices for Numbers in Java - foojay
There is an evergreen debate in the Java world: Should you always use MARKDOWN_HASHeb731dbabfc7392f8ad8c1cdb326a26aMARKDOWNHASH for money? The short - by Stefano Fago
foojay.io
June 24, 2026 at 1:23 PM
Added an AI-Generated Simulation for calculations per second for BigDecimal and double.
Why double Still Outperforms BigDecimal: A Decade-Long Performance Comparison
Overview Many developers consider BigDecimal the go-to solution for handling money in Java. They often claim that replacing double w...
buff.ly
December 20, 2024 at 3:18 PM
While double can be much faster than BigDecimal, that doesn't matter if the results aren't correct. In this benchmark, I also ensured the results were the same.

TY Ken Fogel

https://buff.ly/4fJMxqW
November 26, 2024 at 12:05 PM
📦 ez-php/bignum 2.5.2

Arbitrary-precision integer and decimal arithmetic for the ez-php ecosystem — immutable BigInteger and BigDecimal value objects backed by bcmath (gmp optional)

🔗 https://github.com/ez-php/bignum
September 26, 2026 at 2:29 AM
Nossa, cara, eu lembro do trabalho que eu tive pra transformar uma codebase de double pra BigDecimal justamente por conta de um problema de arredondamento
May 22, 2025 at 4:10 PM
📦 ez-php/bignum 2.5.4

Arbitrary-precision integer and decimal arithmetic for the ez-php ecosystem — immutable BigInteger and BigDecimal value objects backed by bcmath (gmp optional)

🔗 https://github.com/ez-php/bignum
September 26, 2026 at 2:59 AM
O BigDecimal suporta String como parâmetro
a cartoon character from the emperor 's new groove is making an ok sign with his hands .
ALT: a cartoon character from the emperor 's new groove is making an ok sign with his hands .
media.tenor.com
May 22, 2025 at 4:22 PM
Eu esqueci como fazer operações com o BigDecimal do Java num live coding.

Quando acertava o código, não conseguia explicar ao mesmo tempo em que digitava.

Pensamentos são mais rápidos que falas — talvez porque pensamos em conceitos, não em palavras.
Apoio. Leet code é tão decoreba. Eu acho chato pq sou uma pessoa ansiosa e travo se ficar sob pressão. Imagina codar sem poder errar?
September 5, 2024 at 1:29 AM
For float/double they had an extra option that's unavailable for BigDecimal. That's why ArrayList.indexOf works for signed zeroes.

bsky.app/profile/mvsa...
Hmm. Yeah, I guess for double/Double they could differentiate between boxed (probably generic) uses of comparison and unboxed (probably arithmetic) uses.
But that's not an option for BigDecimal.
January 21, 2025 at 9:46 PM
In Java unterscheidest du grob zwischen primitiven Datentypen und Referenztypen. Primitive Typen sind die Bas...

https://magicmarcy.de/datentypen-in-java-ohne-stolperfallen

#DAtentypen #Java #Stolperfallen #2038 #Overflow #int #Integer #String #float #double #BigDecimal #Wertebereiche #Programming
April 26, 2026 at 4:42 PM
Reminded that `BigDecimal` accepts non-ASCII numbers, while `Double` does not:

jshell> new BigDecimal("123")
$194 ==> 123

jshell> new BigDecimal("١٢٣")
$195 ==> 123
March 19, 2025 at 5:05 PM
BigDecimal. Pronto, sem mistério
December 29, 2024 at 10:54 PM
BigDecimal〜〜
April 17, 2024 at 9:06 AM