Write decimal numbers with 2 digits after the coma

Hello a new doubt, how can I write decimal numbers with 2 digits after the coma

I have to write decimal numbers like 00,00 โ‚ฌ (two decimals)

In excel I used DECIMAL([IMPORTE IVA]/[Cantidad];2)

But in Appsheet, I can't write this. 

Sara_Bertomeu_0-1648563599431.png

I read the help data, and found : 

Sara_Bertomeu_1-1648563652456.png

I do it with : DECIMAL([IMPORTE IVA]/[Cantidad]) 

Sara_Bertomeu_2-1648563765737.png, that it's ok,but in the backend, it shows 4 digits. 

Sara_Bertomeu_4-1648563953082.png

And I try the other way: [IMPORTE IVA]/[Cantidad]

and it shows the correct data that I need (2 digits),

Sara_Bertomeu_5-1648564075458.png 

but if I modify it shows

Sara_Bertomeu_1-1648722697540.png

 

 

Sara_Bertomeu_0-1648722397075.pngand I have to rounded each time.

 

There is some tip?  thanks

 

 

 

 

 

Solved Solved
0 2 1,864
1 ACCEPTED SOLUTION

Hello @Sara_Bertomeu, for the case of app formulas, if you set that column's decimal places to 2 it should display the number in the way you want.

If you want to limit the decimals on a column that requires or allows user input and don't want to be bothered having to manually manage the decimals, you can allow a large amount of decimals in that column (like 5 decimals) and then use another column to round that value to the decimal places of your preference.

OR you can use this expression in an event action so that it modifies your value after saving the form to 2 decimals:

ROUND( [Decimal] * 100) / 100.0

View solution in original post

2 REPLIES 2

Hello @Sara_Bertomeu, for the case of app formulas, if you set that column's decimal places to 2 it should display the number in the way you want.

If you want to limit the decimals on a column that requires or allows user input and don't want to be bothered having to manually manage the decimals, you can allow a large amount of decimals in that column (like 5 decimals) and then use another column to round that value to the decimal places of your preference.

OR you can use this expression in an event action so that it modifies your value after saving the form to 2 decimals:

ROUND( [Decimal] * 100) / 100.0

Guauuu, great idea, thanks I'm going to try. Thanks a lot