2 ms·
I worked on a gambling webapp a long time ago. Gambling is heavily regulated here (.au) and all financial calculations are required to be done with 1/10,000th o
by bigiain 6y ago
I worked on a gambling webapp a long time ago. Gambling is heavily regulated here (.au) and all financial calculations are required to be done with 1/10,000th of a cent resolution, and rounding is only allowed to be applied once at the final display step.
(I used the regulations as a way to ensure _all_ calculations happened on the (Java) backend that other people were responsible for, given Javascript's documented mathematical insanity meant any client side calculations couldn't possibly pass compliance...)