note 40990 deleted from function.base-convert by danbrown

From: Date: Sat, 02 Jul 2011 15:41:34 +0000
Subject: note 40990 deleted from function.base-convert by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181175@lists.php.net to get a copy of this message
Note Submitter: kx ---- There's an useful function custombase_convert(), which seems to be very useful, for example, to implement genealogical trees model proposed by Miguel Sofer (http://darwin.zoology.gla.ac.uk/~rpage/ MyToL/www/downloads/trees.pdf). Unfortunately, Fips' code has a bug. To make it work correctly you should replace line while ($decVal > 0) with this: while ($decVal > 0 || $pos >=0)

« previous php.notes (#181175) next »