Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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
tresesco
MVP
MVP

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

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 🙂

 

tresesco
MVP
MVP

🙂 - I agree