You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Gabriel39 (via GitHub)" <gi...@apache.org> on 2023/02/16 02:06:30 UTC

[GitHub] [doris] Gabriel39 commented on issue #16804: [Bug]round函数四舍五入不正确

Gabriel39 commented on issue #16804:
URL: https://github.com/apache/doris/issues/16804#issuecomment-1432369471

   现在默认使用行为是把2.5看作是double类型然后计算round结果,但是double是不保证精度的所以结果会有问题。如果想得到精确值的话你可以使用DECIMALV3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org