Improved handling of float values