Keith B. answered 09/27/19
Software Engineer and Math Geek
float and double are like int and long; double can hold a larger floating point number than the float type. A float is 4 bytes, while a double is 8.
So for small projects, yes, they are interchangeable. If you're dealing with money, float will typically do. Dinosaur DNA? You might want to consider double.