getting a number range from user input.. (weight)

From: Date: Fri, 05 Nov 2004 03:08:40 +0000
Subject: getting a number range from user input.. (weight)
Groups: php.general 
Request: Send a blank email to php-general+get-201249@lists.php.net to get a copy of this message
How can i match a range of numbers from a given input? i tried round() but it rounds off the numbers to the next number, so that will be wrong. My example below show 4 examples of what my db tables looks like. weight value .5 9.45 1.0 10.71 1.5 11.97 2.0 13.23 How can i get the range of: .1 to fall under .5 and 1.3 to fall under 1.0 and 1.6 to fall under 2.0 and so on.. any ideas? -- Louie Miranda http://www.axishift.com

« previous php.general (#201249) next »