> Indeed, all calculations are done using doubles internally. When you
> use floats, they are first cast into doubles, then the computation is
> done, and the result is cast bask into float.
It depends upon what you mean by 'internally'. If you mean internal to
the CPU, then your observation matches what I've seen so far. If you
mean internal to the compiler, then that doesn't match because the
ASM code I looked at had separate float and double arithmetic
instructions, so the compiler didn't have to do any extra work to
convert float to/from double.
- Steve


|