Incrementing number by .1 or substracting .1

From: Date: Fri, 05 Apr 2002 00:36:49 +0000
Subject: Incrementing number by .1 or substracting .1
Groups: php.general 
Request: Send a blank email to php-general+get-91646@lists.php.net to get a copy of this message
Dear PHP Users, I am trying to figure out how to write a script to increase a number by .1 or decrease a number by .1 but the number needs to be in the syntax of x.x. For instance the counting of 5.0 to 6.0 would go: 5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0 or vise versa for subtract. How could I do this? Any help would greatly be appreciated. Devin Atencio

« previous php.general (#91646) next »