Rakete1111
Rakete1111

Reputation: 49028

Difference between double and DOUBLE in C++

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

Answers (1)

Vlad from Moscow
Vlad from Moscow

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

Related Questions