[solution][smarty] Sprintf for an amount of money (double, decimal)

By.

min read

My profile

Share this:

Here we go:

[code:1:84dfdd4ec0]{$number|string_format:”%.2f”}[/code:1:84dfdd4ec0]

will show (x = [0-9] )

x.xx => x.xx
x.5 => x.50

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *