Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
86 votes
6 answers
20k views

Why are floats still part of the Java language when doubles are mostly recommended instead?

In every place I've looked, it says that double is superior to float in almost every way. float has been made obsolete by double in Java, so why is it still used? I program a lot with Libgdx, and ...
Eames's user avatar
  • 885
34 votes
2 answers
89k views

Can anyone explain representation of float in memory?

Can anyone help me in understanding how float values are stored in the memory. My doubt is here float values contain '.' (for example 3.45) how the '.' will be represented in the memory? Can anyone ...
user2720323's user avatar