Systems Engineering

WritingMedium

Why double Loses Precision and How to Avoid It in Java

By Sachin Gupta6 min read
Portrait of Sachin Gupta rendered in binary

A field-engineering note on the precision losses double quietly introduces in financial code, when BigDecimal is the right move, and the rounding patterns that keep statements reconcilable.

Notes

A self-hosted write-up of this entry is on the way. In the meantime, the source link below has the canonical version, and the About page has context on the work I do day-to-day.

Related