Hello @sap ,
Thanks for the question and using MS Q&A platform.
As we understand the ask here is how to get the output of the SQL statement as 10019016421573.92755433905952, please do let us know if its not accurate.
To me its more as to how to play with the precision value . If you see the all the three numbers which you are trying to multiply have a different precision .
The below query did worked for me and i did compared to the readl values which is expected and it matches
SELECT CAST(1234.456 as decimal(20,13))*CAST(23478.89076 as decimal(20,12))*CAST(345678.125567 as decimal(20,13))
Output : 10019016421573.92755433905952
Please do let me if you have any queries.
Thanks
Himanshu
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators