View Full Version : What is this .f
legacy-FireCrack
07-09-2004, 03:56 AM
I keep on seeing things, flaot values, being assigned in default propeties or otherwise to values like
10.f
or
64.32f
WHAT IN THE WORLD IS THIS DAMN F DOING THERE!
legacy-Bonehed316
07-09-2004, 04:30 AM
in order for floats to be floats (in code) they have to have a decimal. when programmers get lazy, they write 10.f and that casts to a float. there are probably more. in java this is the normal way to cast to a float.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.