Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get Whole and decimal part of a number?

Hello,

I have number say - 2.35

I need function to get 2 and another function to get 35

Regards,

Naeem

4 Replies
Miguel_Angel_Baeyens

Hi Mohammed,

Use the Frac() function.

Miguel

Anonymous
Not applicable
Author

... and the Floor() function for the whole bit.

Anonymous
Not applicable
Author

anbu1984
Master III
Master III

=SubField(2.35,'.',1) //Returns 2

=SubField(2.35,'.',2) //Returns 35