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
[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:
> 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
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
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
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
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
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
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
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
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]
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
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
>
>
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
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
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-
>
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
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
18 matches
Mail list logo