[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 |