You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional Libraries Used and Versions
Sequelize: 6.37.5
Problem description
In our Database Table, we have a column of type Decimal(38,20). When saving the value 500, the record in the table is correct, however the data that is returned by is 499.99999999999994
When investigating, I have come across this Issue (#678), which was raised 7 years ago. However, there seems to be no progress in addressing the issue, our team relays in the column being of type decimal, but the value returned by tedious is incorrect, which are causing issues in the program.
Requesting a quick fix on this issue or a temporary workaround to fix the decimal precision issue. One way is to change the column type to varchar, which is not a solution we prefer.
Expected behavior
Value returned should be exactly 500
Actual behavior
Value returned should be exactly 499.99999999999994
Any other details that can be helpful
According to my analysis
Software versions
Additional Libraries Used and Versions
Sequelize: 6.37.5
Problem description
In our Database Table, we have a column of type Decimal(38,20). When saving the value 500, the record in the table is correct, however the data that is returned by is 499.99999999999994
When investigating, I have come across this Issue (#678), which was raised 7 years ago. However, there seems to be no progress in addressing the issue, our team relays in the column being of type decimal, but the value returned by tedious is incorrect, which are causing issues in the program.
Requesting a quick fix on this issue or a temporary workaround to fix the decimal precision issue. One way is to change the column type to varchar, which is not a solution we prefer.
Expected behavior
Value returned should be exactly 500
Actual behavior
Value returned should be exactly 499.99999999999994
Any other details that can be helpful
According to my analysis
tedious/src/value-parser.ts
Line 442 in ebb023e
The text was updated successfully, but these errors were encountered: