Fixed a bug affecting conversion of negative floating point values