Replaced sprintf for double to string

Addresses issue with some locales