You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2023/01/18 05:46:35 UTC

[GitHub] [doris] Mint-Boy-He commented on issue #15307: [Bug] Use correct decimal scale for function `round`

Mint-Boy-He commented on issue #15307:
URL: https://github.com/apache/doris/issues/15307#issuecomment-1386522588

   I have encountered the same problem with version 1.2.1, but version 1.2.0 is normal.
   (在1.2.1版本中遇到相同问题,在1.2.0中没问题)
   
   I found that it may be related to the odd and even number of digits to be reserved. That is, version 1.2.1. If the second decimal digit reserved is an even number, it will be discarded; If it is odd, the normal function is rounding
   (我发现可能跟要保留的第几位数的奇偶数有关。即1.2.1版本,如果保留的第二位小数是偶数,则舍弃;如果是奇数则正常功能即四舍五入)
   ![图片](https://user-images.githubusercontent.com/65714358/213093908-d062e533-e6a6-4755-9170-ea7bc9cccedf.png)
   Test SQL


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