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
On Wed, 11 Dec 2002, Stephen wrote:
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.
Math ... multiply divide ... I assume you're using a base-10
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
Chris Wesley [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Wed, 11 Dec 2002, Stephen wrote:
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.
For your repeating zeors
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,
{
$exp++;
$i = 1;
}
} while($i = 1);
$output = $num . * 10sup.$exp./sup;
Please help!
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Stephen [EMAIL PROTECTED]
Cc: PHP List [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 4:40 PM
Subject: Re: [PHP] Move
Side note...the formatting for my email program went all weird. The numbers
I'm getting as error are as follows:
4.6E-009 * 10^6
1.7E-006
^ indicates that the next number is an exponent... The real error does not
show the ^ sign.
- Original Message -
From: Stephen [EMAIL PROTECTED]
To:
7 matches
Mail list logo