Have you ever gone from one programming language to another and found that you get a bunch of syntax errors just because you are typing code in the old form. Or converted one language to another .
The 'f' at the end of the float was required in many assemblers/languages. It was left in as optional in many assemblers just for just that reason. It allowed programmers to go from a language that required the 'f' at the end of the float and still write the data type the same way in the current language even though it was not required.
I can remember papers that even suggested that it was best practice to always use the 'f'. It basically just boils down to convention though. use it if you want to don't use it if you don't. IF you flip back and forth with a language that requires it, you may find it easier to always use it, Then to try and remember when you have to use it.
Modifié par Lightfoot8, 09 février 2014 - 02:05 .