Reputation: 49028
I wondered what's the difference between double
and DOUBLE
(from #include <Windows>
) in C++. There's a lot of question about it in Java, but that's a totally different language.
Is DOUBLE
just a Windows wrapper class for double
, or something else?
Do they have different advantages?
Upvotes: 4
Views: 174
Reputation: 311126
double
is a C++ keyword while DOUBLE
is implementation defined typedef.
For example if I will include <Windows.h>
in a project in MS VC++ then the IDE shows that DOUBLE
is defined in WTypesbase.h
like:
typedef double DOUBLE;
Upvotes: 6