cassius Posted July 19, 2015 Share Posted July 19, 2015 When do I have to put the "f" suffix after a floating point number? if I put (for example) float number-= 8.0 ; or float nmber= 8.0f; Whats the difference.? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Roland Posted July 19, 2015 Share Posted July 19, 2015 The default without f is a double. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
cassius Posted July 19, 2015 Author Share Posted July 19, 2015 Even though is declared using the word float? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
macklebee Posted July 20, 2015 Share Posted July 20, 2015 when did Roland get hair? 2 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
thehankinator Posted July 20, 2015 Share Posted July 20, 2015 Even though is declared using the word float? yep 3 is a integer 3.0 is a double 3.0f is a float Quote Link to comment Share on other sites More sharing options...
Roland Posted July 20, 2015 Share Posted July 20, 2015 when did Roland get hair? Haha... I haven't. That's a picture of me half as old as I'm now. 1 Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
cassius Posted July 20, 2015 Author Share Posted July 20, 2015 Thanks guys for answers. I did several google searches before asking but got no clear cut answer.They always want to answer more than you are asking which confuses me. But then at my age (91)I am entitled to get just a mite confused at times. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Olby Posted July 20, 2015 Share Posted July 20, 2015 Thanks guys for answers. I did several google searches before asking but got no clear cut answer.They always want to answer more than you are asking which confuses me. But then at my age (91)I am entitled to get just a mite confused at times. 91? That's shocking... Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
cassius Posted July 20, 2015 Author Share Posted July 20, 2015 Huh? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Thirsty Panther Posted July 20, 2015 Share Posted July 20, 2015 Hope I'm still programming when I'm in my nineties. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.