2 ms·
European law requires calculated precision of 4 digits after the dot for monetary amounts, not 2. You display 2 and calculate 4. But an int64 has plenty capaci
by hyperman1 8y ago
European law requires calculated precision of 4 digits after the dot for monetary amounts, not 2. You display 2 and calculate 4. But an int64 has plenty capacity in most situations. I've seen it done this way.
Update: quick calc on my phone: log10(2 63) gives 14+4 places. A quick google gives an estimate of less than 100 trillion dollar on this planet, which is als 14 digits. So unless your needs are really extreme, int64 should serve you well.