Hello,

M. Sokolewicz wrote:

you might want to try using number_format() to change the format back to "integer likeness"


After I changed to echo number_format($var), I got 1,000,000,000,000:) Well, actually this is not my problem. I just tested this for fun.


Best

Bao

Bao Ruixian wrote:

Hello,

Octavian Rasnita wrote:

<?php
$var = 1000000000000;
//Here I have also tried inserting $var = (string) $var;
echo "$var";
?>

This prints:

1E+012

and... not 1000000000000 as it should.



I tried the above example, and I got what you want, i.e. 1000000000000. My environment is Windows 2k, PHP 4.3.3 and Apache 2.0.47.

Best

Bao




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to