[CONJS-142] Number parsing loss of precision Created: 2020-07-23  Updated: 2020-07-23  Resolved: 2020-07-23

Status: Closed
Project: MariaDB Connector/node.js
Component/s: other
Affects Version/s: None
Fix Version/s: 2.4.2

Type: Bug Priority: Critical
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

When parsing double/decimal value, driver might truncate result:

the readFloatLengthCoded and readDecimalLengthEncoded functions will have some problem when integer or fractional part is > than 9007199254740991 due to int limitation (ieee-754).

example -0.9999237060546875 will return -0.9999237060546876


Generated at Thu Feb 08 03:23:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.