Instead of providing cents and rounding off the precision I think you should just keep this as a fraction in floating point.