1.7 number format according to system local

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