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

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

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