So I know that there's a large difference in the precision of floats and doubles. I get that. Promise.
But, in C++, when calling scanf and printf, the notation used to specify a double is "%lf", and that stands for long float, right? So while a float is less precise than a double, a LONG float (presumedly called long float because it can be "longer" by having more terms) is the same accuracy and therefore essentially the same thing?
Just to clarify, here's what I mean:
double number = 3.14159;
printf("The number is %lf", number);
So the root of my question: Is long float another name for double?
long float
and compiler should give you an error. Conceptually though, you can call itlong float
, and that won't be incorrect. – milleniumbug