t;[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 7:11 PM
Subject: [PHP] Move Decimal Point...Again
: Ok, nevermind about that. I fixed it finally. However, I am having trouble
: with the negative exponents. I want to find the scientific not
Ok, nevermind about that. I fixed it finally. However, I am having trouble
with the negative exponents. I want to find the scientific notation of
0.0046 which should be 4.6 * 10 to the negative 3rd. However, what I get in
return is this:
4.6E-009 * 106
How could I fix this problem? I'm also havin
List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 4:40 PM
Subject: Re: [PHP] Move Decimal Point
: > > >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 t
> > >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
> >
"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 zeo
> >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 righ
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 by 1
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 f
9 matches
Mail list logo