Show speed and fuel with only two numbers?

Hello!

trying to make so that my fuel and speed script only show 00 and not 00.0000…

I use this to show the text, but if i remove " .text " im getting errors

text.text = Gas + "L";

I dont like that the speed shows for example 60.3 K/PH, it makes the text flips like a bunny in X pos when it comes to 60.9 and are about to show 61.

How can i fix this eye cracking behaivior?

Standard numeric formats:

And custom numeric formats:

will probably be something like:

text.text = Gas.ToString("00") + "L";

or using string.format:

text.text = string.Format("{0:00}L", Gas);

Ah i see! but i use canvas text, does “string” work for that?

Edit:
the first example did the trick, thanks alot!