This question already has an answer here:
I know that doubles are more precise than floats and that they should be used for financial stuff and other things that require precision, but why do we use floats? Why not just get rid of floats and use doubles for everything since they're more accurate?
Sorry, if this should've been asked somewhere else. I feel like only posts that contain code should go to stack overflow and I didn't know where else to ask this.