Re: [PHP] Move Decimal Point...Again

2002-12-11 Thread Stephen
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

[PHP] Move Decimal Point...Again

2002-12-11 Thread Stephen
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

Re: [PHP] Move Decimal Point

2002-12-11 Thread Stephen
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

Re: [PHP] Move Decimal Point

2002-12-11 Thread 1LT John W. Holmes
> > >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 > >

Re: [PHP] Move Decimal Point

2002-12-11 Thread Hugh Bothwell
"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

Re: [PHP] Move Decimal Point

2002-12-11 Thread Stephen
> >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

Re: [PHP] Move Decimal Point

2002-12-11 Thread Chris Wesley
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

RE: [PHP] Move Decimal Point

2002-12-11 Thread John W. Holmes
>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

[PHP] Move Decimal Point

2002-12-11 Thread Stephen
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