Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

newbie - curency formating

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
omarswan
Smarty Rookie


Joined: 17 May 2003
Posts: 5

PostPosted: Fri Jun 20, 2003 4:16 am    Post subject: newbie - curency formating Reply with quote

Hi Guys,
is there a way to format the number "1658924562.52" so that
it displays like this "1,658,924,562.52".

I need it for currency formating.

Smarty Version : latest
PHP Version : 4.1X & 4.2X

Thanks!
Back to top
View user's profile Send private message
idxman01
Smarty Rookie


Joined: 10 Jun 2003
Posts: 14
Location: FL

PostPosted: Fri Jun 20, 2003 4:18 am    Post subject: Reply with quote

php function: number_format()

...there's also a smarty plugin that calls this function.
Back to top
View user's profile Send private message
omarswan
Smarty Rookie


Joined: 17 May 2003
Posts: 5

PostPosted: Fri Jun 20, 2003 4:23 am    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP