Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

ROUND function

Hei,

How does the ROUND function is working?

I do expect this to turn to 40.2

MindaugasBacius_0-1673940008893.png

While this 40.25 - rounds according to my knowledge 🙂

MindaugasBacius_1-1673940087590.png

Please anybody explain.

Thank you guys.

 

 

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Hi @MindaugasBacius , this is related to binary number system that we should be careful of when dealing with floating point comparisons or so. Read it here : Rounding Errors

 

 

View solution in original post

3 Replies
tresB
Champion III
Champion III

Hi @MindaugasBacius , this is related to binary number system that we should be careful of when dealing with floating point comparisons or so. Read it here : Rounding Errors

 

 

MindaugasBacius
Partner - Specialist III
Partner - Specialist III
Author

I did read the article. And will have to read it 10 times more to digest this way of thinking 🙂

 

tresB
Champion III
Champion III

🙂 - I agree