|
|
View previous topic
::
View next topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 412 Location: A'dam/Diemen, The Netherlands
|
Posted: Tue Sep 14, 2010 8:45 pm Post subject: [solution][smarty] Sprintf for an amount of money (double, decimal) |
|
|
Here we go:
Code: | {$number|string_format:"%.2f"} |
will show (x = [0-9] )
x.xx => x.xx
x.5 => x.50 |
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Tue Sep 14, 2010 8:45 pm Post subject: [solution][smarty] Sprintf for an amount of money (double, decimal) |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Tue Sep 14, 2010 8:45 pm Post subject: [solution][smarty] Sprintf for an amount of money (double, decimal) |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|