note 31480 added to function.base-convert

From: Date: Wed, 23 Apr 2003 15:08:16 +0000
Subject: note 31480 added to function.base-convert
Groups: php.notes 
Request: Send a blank email to php-notes+get-46984@lists.php.net to get a copy of this message
Warning! There is a bug with base_convert when you try to convert a float number: print(base_convert(16, 10, 2)); // Return, correctly, 10000 but print(base_convert(16.2, 10, 2)); // Return 10100010, but the right is 10000.0010... The bug is valid not only for the base 2, but for ALL the base between 2 and 36 -- http://www.php.net/manual/en/function.base-convert.php http://master.php.net/manage/user-notes.php?action=edit+31480 http://master.php.net/manage/user-notes.php?action=delete+31480 http://master.php.net/manage/user-notes.php?action=reject+31480

« previous php.notes (#46984) next »