>If you suggest doing DBL x = (DBL) 2.0 why not doing the same for
>short x = (short)5, or long y = (long)7 because the native type of 5 and 7
>would is assumed to be int by some compiler...
Ahhh... Here is our misunderstanding. You interpret me as saying
that you should never rely on implicit casting. My meaning is that
you need to be careful about implicit casting of floats and doubles.
Post a reply to this message
|