Do people have a usual function they use when rounding
floats off to two decimal places (in order to represent
I am asking because my program takes a percentage of a
dollar and cents amount, which can give a result of more
than two decimal places.
A friend suggested that I preserve the amount and just
print a rounded-off amount to screen. Good idea?