|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-04-09 17:19 UTC] sedat dot capar at isbank dot net dot tr
Description:
------------
intval("2147483648") returns 214783648
this is upper limit for integers however we may use bigint in mysql
therefore converting numbers bigger than 214783647 is needed.
Reproduce code:
---------------
$sayi=intval("2147483648");
print number_format($sayi,",");
Expected result:
----------------
2,147,483,648
Actual result:
--------------
2,147,483,647
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Mar 30 09:00:01 2026 UTC |
I noticed that I made a mistake in first sentence of description intval("2147483648") returns 214783648 should be intval("2147483648") returns 214783647