#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    101
    Rep Power
    0

    VERY VERY long decimal numbers


    You guys may or may not know but this Thursday is PI day! I want to test my capabilities.

    How can I make a REALLY REALLY long decimal number without repeating the word float or double 8 or 10 times? Is there some sort of other way?
  2. #2
  3. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Feb 2004
    Location
    Mobile, Alabama
    Posts
    4,022
    Rep Power
    1285
    You can represent the number as an array of digits.
  4. #3
  5. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,960
    Rep Power
    481
    Repeating long or float won't work because the compiler won't recognize this.

    Thursday is half Tau day (click here!)

    pi is wrong, the musical
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo