note 31480 rejected from function.base-convert by didou

From: Date: Wed, 23 Jul 2003 01:37:01 +0000
Subject: note 31480 rejected from function.base-convert by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52486@lists.php.net to get a copy of this message
Note Submitter: lupone@mail.ru ---- 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

« previous php.notes (#52486) next »