471,337 Members | 1,162 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

currency formatting

Hi guys, i'm trying to format the output of a record in access, which i am
pulling from through php (odbc) and the formatting is set at 4 decimal
places, which i don't want. i want currency and no decimal places.
I was trying to use this example, but i have no bloody idea howo to use it.
or where to put it for that matter:


$number = 1234.56;

// let's print the international format for the en_US locale
setlocale(LC_MONETARY, 'en_US');
echo money_format('%i', $number)."\n";
// USD 1,234.56

i want it in euro also, not us dollars...
hope you guys can help...
Jul 17 '05 #1
0 2583

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Hung Huynh | last post: by
2 posts views Thread by Dalan | last post: by
3 posts views Thread by Melissa | last post: by
4 posts views Thread by Gerry Abbott | last post: by
3 posts views Thread by Vlad | last post: by
4 posts views Thread by Mitchell Vincent | last post: by
18 posts views Thread by Boris Yeltsin | last post: by
14 posts views Thread by Scott M. | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.