>I have a question. How would you move the decimal left or right, depending on if the >number a user enters is negative or not, and then move it that many spaces? If >needed, it would add zeros.
Hmm. Trying to remember what grade I learned this in. You multiply by 10 to move it right, divide by 10 to move it left. >One other question. How would I find the first 0 of a repeating zero. Like 204,000. >How would you find the 0 in the 4th column. Treat it as a string and look for the first set of double zeros. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php