Move Decimal Point
| From: | Stephen | Date: | Wed, 11 Dec 2002 17:49:56 +0000 |
| Subject: | Move Decimal Point | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127854@lists.php.net to get a copy of this message | ||
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.
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.
Thanks,
Stephen Craton
http://www.melchior.us
"What is a dreamer that cannot persevere?" -- http://www.melchior.us