Fix issue #339: sprintf format trouble (#352)
Fix issue #339: sprintf format trouble (#352)

Precision digits are optional, a standalone dot is also considered valid.
Removed also precision handling which is not supported by PHP
kvz/phpjs,kvz/phpjs,kvz/phpjs,kvz/phpjs