note 40990 added to function.base-convert

From: Date: Thu, 25 Mar 2004 18:06:17 +0000
Subject: note 40990 added to function.base-convert
Groups: php.notes 
Request: Send a blank email to php-notes+get-67174@lists.php.net to get a copy of this message
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) ---- Manual Page -- http://www.php.net/manual/en/function.base-convert.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40990 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40990&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40990&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67174) next »