Re:Dinero.js – JavaScript library for working with monetary ...
by nathancahill on Monday April 16, 2018 @08:15PM
(#16854242)
The nature of odds would require that. Otherwise how would you calculate 1:3 odds?
Re:Dinero.js – JavaScript library for working with monetary ...
by bigiain on Monday April 16, 2018 @08:54PM
(#16854456)
Same argument applies to interest rates and many other financial calculations too... The thing I didn't know before that project was that there was a "standard" about how much precision you're required to calculate at. Not that ten thousandths of a cent is necessarily "the right answer", but when the regulators tell you that's the answer it takes a lot of discussion/argument away... (Surely even tenths of a cent would suffice???)
I get the impression back then they everybody in the gaming/gambling industry did this all the time - to the extent that they knew how to organise source code and name variables and functions so the regulators auditing the code would just rubber stamp it.
(I was not "in the gaming industry", we were just doing a mobile friendly front end, in jQuery Mobile, to run on the hot new Samsung Galaxy S2... Now I think I need to go curl up in a dark corner and cry myself to sleep again... Project. From. Hell...)