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

converstion

i want to display 99.996817129 to 99.99 in text object how to achieve this?

6 Replies
marcus_sommer

Try: floor(Number, 0.01)

- Marcus

gautik92
Specialist III
Specialist III

=Num(value,0.00)

sasiparupudi1
Master III
Master III

=floor(99.996817129,0.01)

qlikmsg4u
Specialist
Specialist

=floor(99.996817129,0.01)

Anonymous
Not applicable
Author

Hi Nilanjan, for text boxes it is helpful to use the num function. The above solutions are correct but if you want to make sure you always format the number correctly you can wrap it in the num function as follows:-

=num(floor(99.996817129,0.01),'# ##0.00')

You can then use any number format for the way you want to display the number.

jonathandienst
Partner - Champion III
Partner - Champion III

99.996817129 rounded to 2 decimal places will round to 100.00, not 99.99

If 99.99 is what you want you will need to explain how you came to that number - it is not just rounded.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein