Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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
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.