Exponent

Hi,

I wrote a script that produces very large numbers that look like this:

9.9761824839787E+15

my question is: Is that an exponent? I’m math challenged… and is there anyway to convert that number to a format that represents that actual number?

thanks

Its scientific notation. something i haven’t used since my chem class in high school :slight_smile:

Yes, and it is possible. Check out this link and look at the samples that people posted down the page a bit.

Good luck with it…

http://php.net/manual/en/book.math.php

Thanks Guys, I’ll need luck. I didn’t see a way to convert a number from exponent but I;ll keep looking. Tired…

If you’re not looking for precision, try round() or number_format()

The link I sent to you showed samples of using number_format functions which is what you want. You would have to convert it to a long-int or better a string telling it to use 0 decimals or something like that.

If you can’t figure it out, let us know and I might be able to spend some time on it later in the day…

Sponsor our Newsletter | Privacy Policy | Terms of Service