Re: [PHP] Money format

2004-07-20 Thread John W. Holmes
LukÃÅ Moravec - PTV Servis wrote: is there any function wich can format a "double" or "string" into "money format".for example: 1526789,99 to 1.526.789,99 or something like that.? number_format() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magaz

RE: [PHP] Money format

2004-07-20 Thread Jay Blanchard
[snip] Hi to all, is there any function wich can format a "double" or "string" into "money format".for example: 1526789,99 to 1.526.789,99 or something like that.? Regards Lukas [/snip] http://www.php.net/number_format -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Money format

2004-07-20 Thread Matt M.
> Hi to all, > is there any function wich can format a "double" or "string" into "money > format".for example: 1526789,99 to 1.526.789,99 or something like that.? > Regards Lukas > You could try http://us2.php.net/manual/en/function.money-format.php or http://us2.php.net/manual/en/function.numbe

RE: [PHP] Money format

2004-07-20 Thread Dan Joseph
Hi, From php.net/sprintf: I think you'd have to format the . and , a bit differently, but that should be a start. -Dan Joseph > -Original Message- > From: Lukáš Moravec - PTV Servis [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 2:10 PM > To: [EMAIL PROTECTED] > Subj

Re: [PHP] Money format

2003-01-30 Thread Ben Edwards
As I said it is almost what I want but not quite. If it can be done a code snipit would be good. Ben At 19:44 30/01/2003 -0700, V Dub wrote: http://php.net search in functions for number_format Cheers! Quoting Ben Edwards <[EMAIL PROTECTED]>: ### I wish to format money with a £ sign, two d

RE: [PHP] Money format--concatenate?

2003-01-30 Thread Leonard Burton
Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Money format http://php.net search in functions for number_format Cheers! Quoting Ben Edwards <[EMAIL PROTECTED]>: ### I wish to format money with a £ sign, two decimal places and commas ### separating thousands. I seem to be able to do the £ an

Re: [PHP] Money format

2003-01-30 Thread V Dub
http://php.net search in functions for number_format Cheers! Quoting Ben Edwards <[EMAIL PROTECTED]>: ### I wish to format money with a £ sign, two decimal places and commas ### separating thousands. I seem to be able to do the £ and decimal places with ### ### sprintf or use money_format to

Re: [PHP] money

2003-01-09 Thread Scott Houseman
Hi There. Try this //To get a comma rather that a period: $fTotalPrice = $iQuantity * $fUnitPrice; $fTotalPrice = str_replace( '.', ',', $fTotalPrice ); //To check wether to add a zero to the end of a float: // Get part of float after comma. $iDecimal = substr( $fTotalPrice, strpos( $fTotalPri

Re: [PHP] money - done

2003-01-09 Thread W. Enserink
D]>; <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 11:48 AM Subject: Re: [PHP] money > http://www.php.net/manual/en/function.number-format.php > > - Original Message - > From: "Wilbert Enserink" <[EMAIL PROTECTED]> > To: <[EMAIL PROTEC

Re: [PHP] money

2003-01-09 Thread Danny Shepherd
http://www.php.net/manual/en/function.number-format.php - Original Message - From: "Wilbert Enserink" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 10:44 AM Subject: [PHP] money Hi all, I'm busy making a swebstore. I have troubles with the format of mone

Re: [PHP] money

2003-01-09 Thread rblack
number_format() http://www.php.net/manual/en/function.number-format.php == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED]

Re: [PHP] money print out with two digits after , e.g. 49,00

2001-05-08 Thread heinisch
At 08.05.01 16:34, you wrote: >I want to changes 49.4 ---> 49,4 > 49,4 > 49,40 Try this "; ?> Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

RE: [PHP] money print out with two digits after , e.g. 49,00

2001-05-08 Thread Johnson, Kirk
Try number_format() http://www.php.net/manual/en/function.number-format.php Kirk > -Original Message- > From: Ramiro Radjiman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 08, 2001 8:35 AM > To: [EMAIL PROTECTED] > Subject: [PHP] money print out with two digits after , e.g. 49,00 > >

Re: [PHP] money print out with two digits after , e.g. 49,00

2001-05-08 Thread Neill Robins
Tuesday, May 08, 2001, 10:34:51 AM, Ramiro Radjiman wrote: RR> I want to changes 49.4 ---> 49,4 RR> 49,4 > 49,40 RR> the first rule is done with the code RR> $totaal=49.4; RR> $totaal=str_replace(".",",",$totaal); RR> how can i do the second row?? RR

Re: [PHP] money maths

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 11:34, Michael Hall wrote: > this works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In > other words, how to add a zero so that there are always two decimal > places. Any solution to this, including regex? I can't find anything look for number_format() and s

RE: [PHP] money maths

2001-02-12 Thread Michael Hall
Brilliant! Once again this list proves to be one of the wonders of the world. Problem solved in 10 minutes or less. Thanks again. On Mon, 12 Feb 2001, Martin E. Koss wrote: > Try the number_format > example: > $Price = number_format($BasePrice,2); > > Martin. > > -Original Message- >

RE: [PHP] money maths

2001-02-12 Thread Martin E. Koss
Try the number_format example: $Price = number_format($BasePrice,2); Martin. -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: 12 February 2001 10:35 To: PHP List Subject: [PHP] money maths I'm building a demo shopping cart and have sorted out most things but this

Re: [PHP] money data type cause problem in connection to Mssql7.0

2001-01-12 Thread Joe Stump
Why not use float? --Joe On Fri, Jan 12, 2001 at 05:19:59PM -, [EMAIL PROTECTED] wrote: > Hi, > > I have got a problem that I canot connect to mssql 7.0 tables with PHP if it > contains field in "money" data type. When I change the "monty" type to > interger or other types, everything fi