yoursweetie opened a new issue, #39618:
URL: https://github.com/apache/doris/issues/39618

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.1
   
   ### What's Wrong?
   
   conv() with float value as input parameter leads to incorrect result
   
   ### What You Expected?
   
   float value or other illegal values are banned from conv() function
   
   ### How to Reproduce?
   
   Just execute
   ```
   create table test_tb(int_1 int, float_2 float);
   
   insert into test_tb values(1, 1.464868);
   
   select conv(float_2,10,2),float_2 from test_tb;
   ```
   
![图片](https://github.com/user-attachments/assets/ed8c5144-cc89-4b9d-be82-da459c18b3f9)
   
   The result "0" is incorrect, it should be like "0 01111111 
01110111000000011001011"
   
   
![图片](https://github.com/user-attachments/assets/3b8ac6ff-19a2-44c7-aab7-d9d95b50066e)
   
   BTW, I suggest that the conv() prohibits floating-point numbers as input 
parameters
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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-unsubscr...@doris.apache.org.apache.org

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


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

Reply via email to