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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Floor Function

Hi, I have a question about Floor Function. Could someone explain how Floor(3.5,-0.5) results in 4.0? I was thinking that it would result in 3.0

Any help will be greatly appreciated

Labels (1)
10 Replies
Anonymous
Not applicable
Author

Floor(3.5,-0.5) results in 3 not 4

if it is more than single fraction  3.5  i.e Floor(3.57,-0.5) will result in 4

same wise 0.1  also behaves Floor(3.68,-0.1)---->3.7 where as

Floor(3.6,-0.1)----->3.6

Floor(3.68,-0.1)---->3.7

Floor(3.6,-0.5)-----> 4

Floor(3.5,0.5) -----> 3.5

Floor(3.5,0.1)------> 3.5

Floor(3.6,0.1)---> 3.6

Ceil(3.4)------->  4

Ceil(3.6)-------> 4