Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decimal128 does not parse floats correctly #5184

Closed
leemaguire opened this issue Jan 24, 2022 · 0 comments · Fixed by #5191
Closed

decimal128 does not parse floats correctly #5184

leemaguire opened this issue Jan 24, 2022 · 0 comments · Fixed by #5191
Assignees

Comments

@leemaguire
Copy link
Contributor

Expected results

decimal128 to parse numbers correctly

Actual Results

When a float is passed into a decimal128 it is converted to a string. At that point precision is lost.

Steps & Code to Reproduce

Link to original ticket

  • Create a decimal128 with a float value of 1159336.05
  • The result of the boxed value will be 1.15934E6 which is incorrect

Core version

Core version: 10.8.0

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants