#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
    Jan 2004
    Location
    Mobile, Alabama
    Posts
    4,024
    Rep Power
    1286
    You can represent the number as an array of digits.
  4. #3
  5. Contributing User

    Join Date
    Aug 2011
    Posts
    5,259
    Rep Power
    503
    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