Show Decimal Point

Hey this is a really nooby question but how do you show a decimal point on a number at all times? I need to basically show a receipt with two decimal places regardless of the amount. So if the number is 100 then 100.00 if its 100.9 then 100.90, Same for 1.00, 10.00, and so on. Thanks!!

Basically, like this:

print(("%.2f"):format(5))

or

local my\_string = "amount: %.2f" print(my\_string:format(5))

or if you’re an old-school printf user,

local value = 5 print( string.format("%.2f", value ) )

Basically, like this:

print(("%.2f"):format(5))

or

local my\_string = "amount: %.2f" print(my\_string:format(5))

or if you’re an old-school printf user,

local value = 5 print( string.format("%.2f", value ) )