1.7 number format according to system local

The unit tests is just a best guess, would be great if somebody could test it before merging.