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
[EMAIL PROTECTED] > Subject: [PHP] Money format > > 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 -- PHP General Mailing Lis

[PHP] Money format

2004-07-20 Thread Lukáš Moravec - PTV Servis
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

Re: [PHP][PHP] Money Decimals

2003-02-19 Thread Justin French
Did you even bother to look on the site? To prove a point, I did a seach for the word "number" on PHP, and found this result within SECONDS: http://www.php.net/manual/en/function.number-format.php Justin French on 20/02/03 9:54 AM, Dennis Cole ([EMAIL PROTECTED]) wrote: > I am writing a s

Re: [PHP][PHP] Money Decimals

2003-02-19 Thread Richard Whitney
Do you ever want to show more then .00 in the decimals place? If not, strip everything off of the number after the decimal including the decimal. then format the number on retrieval by using number_format($number,2); HTH RVW Quoting Dennis Cole <[EMAIL PROTECTED]>: ### I am writing a script tha

[PHP][PHP] Money Decimals

2003-02-19 Thread Dennis Cole
I am writing a script that will take amount out of a database then display them on the page. But, some of these are like "46.0" or "46" or "46.005", and they all need to look like "46.00". Is there an easy way to do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

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

[PHP] Money format

2003-01-30 Thread Ben Edwards
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 do the commas but cant find how to do both/combine them. any insight, ben *

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

[PHP] money

2003-01-09 Thread Wilbert Enserink
Hi all, I'm busy making a swebstore. I have troubles with the format of money. I wanrt to display amounts like "2 products a ? 6,25 = ? 12,50" Whatever I try I can't get the comma there (it's showing a point "." and it doesn't display the second number behind the comma i.e. "12.5" Anybody k

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

Re: [PHP] money

2003-01-09 Thread rblack
AIL PROTECTED]> <[EMAIL PROTECTED] cc: l> Su

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 aft

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

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

2001-05-08 Thread Ramiro Radjiman
I want to changes 49.4 ---> 49,4 49,4 > 49,40 the first rule is done with the code $totaal=49.4; $totaal=str_replace(".",",",$totaal); how can i do the second row?? please help. greets Ramiro -- PHP General Mailing List (http://www.php.net/) To

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
-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: > > I have php work out s

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 thing

[PHP] money maths

2001-02-12 Thread Michael Hall
I'm building a demo shopping cart and have sorted out most things but this: I have php work out subtotals by multiplying $quantity * $price ... 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 so

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

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

2001-01-12 Thread michael
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 fine. The fact is that I have to use "money" data type. Can somebody help me please? Thanks in advan