I have a decimal value with a scale of 4 that is necessary but rarely used (whole numbers or a scale of 1 are the most common scenarios). While displaying a decimal with the trailing zeros removed is simple, trying to bind it to an InputNumber and format it doesn't seem to be possible without a custom control.