posted 16 years ago
Sorry I thought it was self understanding.
You said that a "hexadecimal is only for int literal." and this is correct.
But when it's an int-literal than it is also an int.
You can assign any int (or int literal) to a variable of type double without explicit casting.
Your version
double d = 0x45876;
is just an "abridged version" of
int i = 0x45876;
double d = i;
Back to your sentence: "hexadecimal is only for int literal."
This means only that you cannot make any kind of hexadecimal double literal, eg
double d = 0x01.0;
Yours,
Bu.
all events occur in real time