Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
Newuser_qlik
Contributor
Contributor

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

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.