3 ms·
Use ints. No multiplication necessary. Everything is done in cents. You add/remove the decimal point when doing string conversions.
by danaliv 6y ago
Use ints. No multiplication necessary. Everything is done in cents. You add/remove the decimal point when doing string conversions.