it should support values upto 2 decimal places. However the total should always be 100.00 for input field
Hi Ashwathnarayan,
Can you please clarify what is the issue that you are facing, perhaps with some images?
Guessing what you want to achieve is to have some numeric inputs with more than 2 decimal places and then have a 'Total' expression with only 2 decimal places, is that it?
Regards,
PZ
Hi paulo,
which expression should i use to convert 100 to 100.00
Hi!
Please check the attached OML and see if that's what you are trying to achieve.
If not, we can try to better understand your problem and provide another solution.
Hii, @Ashwathnarayan K
to convert 100 to 100.00
you ca simply use below expression
FormatDecimal(100, 2, ".", "")
instead of using 100 as static value you can pass your variable on place of 100
Thanks
Mohd Rizwan
Hi Mohm,
After assinging
the data still same like 100
if i save 100.00 it will coming with value 0
What is the data type of your attribute which you are saving in your DB?
In decimal
Hi Ashwathnarayan K, maybe I totally misunderstod your question but are you looking for an Input Mask to input data in "100.00" format? If so take a look at this forge component https://www.outsystems.com/forge/component-overview/7729/input-mask
Best regards,
Hi i want to convert to textbox to decimal numbers .
now the textbox is in number and its Db structure is in integer.
please help me in this tried many thing like JS handler, format decimal .
but it still not converting
Have you tried "," instead of "."? FormatDecimal(100, 2, "," , "")
Depending on locale the decimal separator is a ",".
Hi
Please use like this
FormatCurrency(100, "", 2, ".", "") => 100.00
CheersImtiyaz