[FX.php List] Formatting numbers in FX.php
Allyson Olm
allyson at fmwebschool.com
Fri Mar 3 11:16:05 MST 2006
Hi Bob,
You can use number_format()
Ex.
$num = 125489;
echo number_format($num);
In kindness,
Allyson Olm
FMWebschool
http://www.fmwebschool.com
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
Sent: Friday, March 03, 2006 1:08 PM
To: FX.php Discussion List
Subject: [FX.php List] Formatting numbers in FX.php
Hi list,
Is there a way to get FX.php to return the formatting that FileMaker
uses with numbers? In CDML, I could just add ",format" to a tag to
have a number displayed using the same formatting as the database
itself.
For example, with a number like 12000, I'd like it to display as
"12,000"; I'm hoping not to have to write a calc script to insert
commas or dollar signs.
Does such a beast exist? Failing that, does anyone have a calc
they've already done that will format my number with thousands
separators?
Thanks a lot,
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
CONTACT US VIA SKYPE:
USERNAME: longtermsolutions
CONTACT US VIA INSTANT MESSAGING:
AIM or iChat: longterm1954
Yahoo: longterm_solutions
MSN: bob at patin.com
ICQ: 159333060
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list