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
[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
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
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
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
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
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
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
*
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
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
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
AIL PROTECTED]>
<[EMAIL PROTECTED] cc:
l> Su
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 aft
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
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
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
-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
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
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
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
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
27 matches
Mail list logo