[gameprogrammer] floating-point-numbers

Hello,

can anybody tell me why many OpenGL programmer user "1.0f" instead of just "1"?
for example glVertex3f(1.0f, 1.5f, 0.0f); instead of glVertex3f(1, 1.5, 0);
Is there any performance advantage or something? The compiler should recognize that the function needs 3 floats or not?
Or is it just some strange coding style?

Thanks in advance.
   Christoph

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: