### Title

Newbie Trailing Zero and Rounding Question

### Post

I'd like to have a field where I could type in a numeric value and if the number does not have a decimal place to give me one with a trailing 0, if it has a decimal to keep it, and if it is more than one decimal to round it to one.

I.E. I'd like to be able to type in a number field "24" and get "24.0" (one decimal place) to show and if I type "24.5" for it to show 24.5" and if I type "24.55" for it to show "24.6" without using layout formatting. So, the unformatted data result would be "24.0", "24.5", and 24.6" respectively.

What do I need to do to get this to work?

TIA

It can be done with an auto-entered calculation, but why not just use the formatting on the field which is much simpler?

Let ( [ d = Round ( Self ; 1 ) ; i = Int ( d ) ] ; If ( i = d ; d & ".0" ; d ) )