Display float as an integer in Lovelace

Is there any way to display an entity as an integer in Lovelace even though it’s maintained as a float in the back end?

In my case, I have an input_number which records how much heating oil I have left since the last fill. Every day I subtract the estimated fuel burned (based on burner runtime). I want to keep this value as a float to minimize rounding errors.

But I want to display it in Lovelace as an integer.

I know I can create yet another entity using a template, and display that value instead, but it seems like it would be cleaner to just use round() somehow when displaying it. I was a little surprised when I couldn’t find a way to do this.

Am I missing something obvious here?

No solution here yet?

Yes, there is now. Display precision setting under the entity settings.