[Bf-committers] Floating point compares

Martin Poirier bf-committers@blender.org
Wed, 29 Oct 2003 04:20:26 -0800 (PST)

--- Ton Roosendaal <ton@blender.org> wrote:
> I also noticed someone adding an 'f' to float
> constants. I don't know  
> what this is good for... the compiler really can do
> that thinking for  
> you, or not?
> Just always use a point precision to express it's a
> float constant.

That must have been me. When compiling with the
highest level of warning, MSVC complains about going
from constant double to float. Adding the f makes sure
the compiler use a const float instead of a const


Do you Yahoo!?
Exclusive Video Premiere - Britney Spears