Fixed floating point decimals
Assuming that floating point won't cause any calculation error, it should be good now.