Mail Archives: djgpp/1997/01/29/19:48:02
sci/econ/15305 <wpenros comp.os.msdos.djgpp:12480
Ryan Blazecka (eblazecka AT bc DOT sympatico DOT ca) wrote:
: Michael Phelps wrote:
: > This may sound a little counterintuitive, but sometimes you can get better
: > results by using doubles rather than floats.
: Why is this? I've heard it many times, but never understood why.
Yes, this is true. It is because every float is is converted into a
double before every operation and is then converted back into a float at
the end of the operation. (FPU only handles double, not float? I'm not
sure). If you want speed, use all doubles instead of floats. For size,
use floats.
JL
- Raw text -