Display decimal field without right side zeros 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
You can format the field from Manage Display as follow:


Go to manage display of the respective entity
Click on settings button of the field to do formatting
Change the value of Scale dropdown to zero
Click update
Click Save button at bottom