Fix float rounding issues.
Merge pull request #668 from tychobrailleur/float_round

Fix float rounding issues.