Change the way sensor, variable outcome on lovelace

Hi All,

I used variable which come out very nicely and sensor however in some cases I would like to add . as a number seperator which will shown very nicely. However how could I change the text only after all calculation. Sensor can be done easily however for variable I’m still having a hard time. Anyone able to help?