decimal limitation

0
i need to return only two digits after decimal of a string variable like if it is 12.3333 i need to return only 12.33 i need to convert that string to integer as well as return only 2 places after decimal how can that be achieved 
asked
2 answers
1

Hi Nithya, 

 

Where would you like to do this, do you want to show this on a page as text, in a grid or do you want to have this in your database?

 

I think it is at least worth to take a look at this:

https://docs.mendix.com/refguide/parse-and-format-decimal-function-calls/

answered
1

Hi Nithya,

As my understanding you have a Decimal value of 12.3333 

By this Decima value you need only 12.33

For this use this parseDecimal(toString($Decimal),'#.##') 

It will return 12.33 as Decimal value

answered