1031
Views
5
Comments
Solved
Force decimal numbers to apear
Question

Hi everyone!


I need to show decimal numbers, even when they're zeros (p.e. "120.00") but the widget just show decimals if they're not zero.

How can I force that?


Thank's for the help!


Best regards,

Ricardo

2019-11-11 17-10-24
Manish Jawla
 
MVP
Solution

Hi Ricardo,

There is an inbuilt function in Outsystem called FormatDecimal()by using that you can display the trailing zero's as well. Hope this helps.

Regards,

Manish Jawla

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

Hi Manish,


Thank you for the help! In this case that doesn´t work because I want to do this in the Form (where I insert the values) and I don´t have place to put the function.

Regards,


Ricardo

UserImage.jpg
Brit'ne Sissom

Hi Ricardo,


I know this is old but were you ever able to find a solution to this problem?

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

Hi Brit'ne!


I used Manish solution! (I forgot to mark as solution!).


Try that if you need! ;)


Best regards,

Ricardo

UserImage.jpg
Roberto Ortiz

I trying use formatdecimal function but do not working with integer values (ex. 100 display 100 and not 100.00)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.