I have a decimal field for length (cm) with precision 2. If I enter number without ‘.’ it should display as it is only. For example If I enter 23 it should display 23 only not 23.00. If I enter 23.14 it should display 23.14. How can I do that? Am I missing any thing here?
Sorry, editing my question:
It should display the numbers like following (in Full node view, Views, Forms and wherever it appears)
If any one entered 93 it should be displayed 93 only not 93.00 (cause of the scale 2).
If entered 93.40 it should be displayed 93.4
If entered 93.14 it should be displayed as 93.14 only
I know that the value will be saved with scale 2(As given in Fields Form) in the database. But the value should be displayed as a whole number etc