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

The result of the round(decimal(33,25)) function is incorrect #37143

Open
2 of 3 tasks
yanyxin opened this issue Jul 2, 2024 · 0 comments
Open
2 of 3 tasks

The result of the round(decimal(33,25)) function is incorrect #37143

yanyxin opened this issue Jul 2, 2024 · 0 comments

Comments

@yanyxin
Copy link

yanyxin commented Jul 2, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.0.12 Release

What's Wrong?

select round(coalesce(186,-33280029.8473323000000000000000000));
--sql结果是100830802,计算过程中将186转成decimal(33,25),round函数在处理时会得到100830802,正常得到的结果应是186

What You Expected?

希望得到正确结果186

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant