[PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread SED
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

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Ben Peter
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

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Todd MacPherson
$ 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

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Phil Driscoll
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

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Ben Peter
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:

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Phil Driscoll
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

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Christian Reiniger
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