Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

15
  • 8
    Possible duplicate of When do you use float and when do you use double Commented Apr 26, 2016 at 16:10
  • 59
    How in the world did you infer "float is really only good for numbers with a lot of digits after the decimal point" from the answers to that question?! They say the direct opposite! Commented Apr 26, 2016 at 16:48
  • 20
    @Eames Note how it says "numbers", not "digits". Floats are worse when you need precision or range, they are better when you need lots and lots of not-so-precise data. That's what those answers say. Commented Apr 26, 2016 at 17:22
  • 29
    Why do we have byte and short and int when there's long? Commented Apr 27, 2016 at 6:55
  • 15
    A much more fitting question is "why would you remove a keyword and primitive datatype from a language with decades of code that would just break for no reason"? Commented Apr 27, 2016 at 18:02