3 ms·
An integer expressing dollars, cents, or hundredths of a cent depending on the level of precision you need is the usual best practice. Using floating point mat
by bena 17y ago
An integer expressing dollars, cents, or hundredths of a cent depending on the level of precision you need is the usual best practice.
Using floating point math for money is just asking for trouble.