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: 
Newuser_qlik
Contributor II
Contributor II

Round off

Hi All,

I need to round upward if it is less than .5 and round downward if it is greater than .5

E.g: 4.2 => 5

6.8 => 6

6.6 => 6

3.4 => 4

Need help on it.

Labels (1)
  • Chart

2 Replies
tresB
Champion III
Champion III

Like this?

=if(frac(vNum)*10<=5, ceil(vNum), floor(vNum))

vinieme12
Champion III
Champion III

OR below

ceil(6.2,if(frac(6.2)>=.5,-1,1))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.