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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] round a number to the superior integer

Hello,
I'm trying to use math.round to round a double to the superior interger, for example :
6,2 become 7
5,9 become 6
9 become 9
but math.round just return me :
6,2 become 6
5,9 become 5
9 become 9
Can you help me ?
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

3 Replies
Anonymous
Not applicable
Author

Hello,
java.lang.Math.ceil(6.2d)
CF the doc here :
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Math.html
Anonymous
Not applicable
Author

Thank you, it work goob (without the 'd'). Why did you put a 'd' ?
Anonymous
Not applicable
Author

hum, that's weird it should work too.
It forces it to be a double (it could be a float).