New on Foojay: Christian Lauridsen explains how to keep every digit of a price in Java. Why double fails, why decimalValue() on a string node returns 0, and five BigDecimal traps, from equals vs compareTo to E-notation. foojay.io/today/exact-... #Java #BigDecimal #Jackson
foojay.ioExact Prices in Java: Decimal Strings and BigDecimal TrapsWhy double breaks prices, why APIs send them as strings, and the BigDecimal and Jackson traps to avoid when you read, compute and display them.
0 reposts1 like