Fix rounding failures

* Fixes rounding problems in the number util class, probably due
  to ambiguous system rounding rules (os x vs linux).
Merge pull request #1 from olle/fix-rounding

Fix rounding failures