Hi,
I'm multiplying floating numbers:
$result = $foo * $boo; and the result is like this:
echo "$result";
And the result is like this:
2.2864849511949E+190
How can I transfer this to normal-human-readable number?
Regards,
Sumarlidi Einar Dadason
SED - Graphic
Hi,
I tried
which gave me
-2147483648
echo $foo gives
2.2864849511949E+190
- This looks like the number is too large for printf (the 'human
readable form' printed by printf is abviously wrong).
Does anybody know such of limits to sprintf?
Ben
SED wrote:
>
> Hi,
>
> I'm multiplying flo
$ result = Round($foo * $boo)
Todd
From: "SED" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: February 16, 2001 7:15 AM
Subject: [PHP] How to transfer "2.2864849511949E+190" to a
normal-human-readable number?
> Hi,
>
> I'm multiplying floatin
You are working with VERY large numbers here. I would have said that the
number is as good as you'll get in terms of human readability unless you
want to see nearly 200 zeroes on the screen.
That said, I'm not sure how much use such large numbers will be to you, as
when represented as floating po
Hi,
have to correct that (thanks to Adam Whitehead for pointing out).
It should be %f instead of %d. However:
'' | php -q
2286484951194899000
Segmentation fault (core dumped)
[ben@home ben]$
This is PHP4.0.4pl1
Ben
Ben Peter wrote:
Peter <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Friday, February 16, 2001 12:34 PM
Subject: Re: [PHP] How to transfer "2.2864849511949E+190" to a
normal-human-readable number?
>Hi,
>
>have to corre
On Friday 16 February 2001 12:33, Ben Peter wrote:
> It should be %f instead of %d. However:
>
> ' $foo) ?>' | php -q
> 2286484951194899000
> Segmentation fault (core dumped)
Well, I *can* understand that printf () isn't prepared to han
7 matches
Mail list logo