SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict manipura's Avatar
    Join Date
    Apr 2001
    Location
    Calgary,AB
    Posts
    345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Calculating Very Large Numbers

    44945570212853 + 72723460248141 = 1.1766903046099E+14
    I tried to do this with PHP.....
    Why do I get an answer like this?
    Can it not go past trillions or what?

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2001
    Location
    Los Angeles
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Isn't that right?
    You get the same answer in a calculator.
    You may have to parse the number to get it in the format you want, but it looks like you are getting the right answer.
    bsacks
    http://www.middlepeak.com

  3. #3
    SitePoint Guru sowen's Avatar
    Join Date
    Feb 2001
    Location
    Stockport, UK
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Standard scientific notation

    E+14 means move the decimal point 14 places to the right.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •