There are several ways to do it.<p>One it so use fixed point decimal with a 1&#x2F;100 scaling instead of floating point. So yes, integers and then you shift the decimal point when you output.<p>But you have to watch out for interest calculations, you might earn a fraction of a penny on a daily basis but over a year it adds up and you can&#x27;t throw away that accuracy.<p>So you might do all math as floating point, but with pennies instead of dollars.<p>Or you can do Binary Coded Decimal, which stores each group of decimal number after the decimal point exactly, in many ways it similar to fixed point decimal, since it is a fixed point.