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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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