News for hackers. Stuff that matters.
Re:C++17 – better than you might think by fauigerzigerk on Thursday December 29, 2016 @08:15AM (#13277080)
Sure, but division and multiplication add more decimal places. If you do a lot of calculations and you truncate or round every single intermediate result, rounding errors may add up to unacceptable levels in some cases.

So I wanted perform the caculations with high precision, then round the final result according to what the law requires.

Re:C++17 – better than you might think by twic on Thursday December 29, 2016 @08:38AM (#13277164)
Last time i did calculations in high finance, we used a (buggy, handrolled) 128-bit fixed-point type for exactly this reason.
Re:C++17 – better than you might think by poikniok on Thursday December 29, 2016 @09:42AM (#13277468)
Thankfully there is __int128 these days natively!
Re:C++17 – better than you might think by twic on Thursday December 29, 2016 @01:30PM (#13279009)
Not in Java, sadly!