How can I remove trailing zeros from a number with decimal data type

hello everyone,  greetings, I need your help to fix my issue,   how can I remove extra zeros coming in decimal values(i am using decimal data type for these fields ), is there any way to remove them, Optimizing decimal precision by eliminating extraneous zeros through Regex or is there any other way to fix this issue    thank you in advance 
1 answers

You should be able to set the Decimal mode to Auto for that field on the page. It should then remove trailing zeros.


decimal mode formatting in Mendix


I hope this helps.