#23564 [Opn->Csd]: base_convert() ignores last character
| From: | irchtml@php.net | Date: | Thu, 01 Apr 2004 09:50:41 +0000 |
| Subject: | #23564 [Opn->Csd]: base_convert() ignores last character | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969359877@lists.php.net to get a copy of this message | ||
ID: 23564
Updated by: irchtml@php.net
Reported By: jaakkoho at paju dot oulu dot fi
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux 2.4 (Debian)
PHP Version: 4.3.2RC3-dev
Assigned To: hholzgra
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2003-09-10 21:15:10] hholzgra@php.net
see also 23563
------------------------------------------------------------------------
[2003-05-15 09:10:33] derick@php.net
Okay, this is definitely not trivial to fix and making this a
documentation problem instead: base_convert() loses precision on big
numbers due to float properties.
Derick
------------------------------------------------------------------------
[2003-05-15 07:33:45] derick@php.net
Found the problem... the float (internally) reaches maximum precision
in the case. Going to try to fix it in some way.
------------------------------------------------------------------------
[2003-05-09 09:22:00] jaakkoho at paju dot oulu dot fi
Both the following commands outputs same value:
base_convert("aaaaaaaaaaa", 36, 10);
base_convert("aaaaaaaaaab", 36, 10);
output: 37606201097790608
In fact, the last character can be whatever between 0-z,
and the output is always same.
This bug appears only if strlen($string_to_convert) > 10.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23564&edit=1