Warp wrote:
> I have seen this written in C:
> double x = (double)(1.0);
<chuckle> Who wrote that </chuckle> :)))
As far as I know most compilers convert constants at compile time.
> I'm just wondering why this wasn't enough:
> double x = 1;
Maybe they thought that the compiler would insert instructions to convert an
int to a double at runtime, unlikely though it is?
--
Bye
Pabs
Post a reply to this message
|