Better rounding (thank you Arthur D.) of register values, should correct some strange behavior