RE: Floating Point Trouble! [Information] 05-22-2013, 08:01 AM
#11
(05-22-2013, 07:32 AM)Deque Wrote: ArkPhaze is correct. printf doesn't take any float so it doesn't have a format specifier. If you give a float to printf it is converted to double. So you use %f for double.
The internet is a bitch when it comes to finding correct information and examples. It is always adviceable to look into language specifications.
Edit: Download C99 here: http://www.open-std.org/jtc1/sc22/wg14/w...dards.html
Hahaha.. That is the exact link I just PM'ed him a few minutes ago. That is where I got my C99 and C11 specification PDF's. It's good for everyone to have, so I thought I would share that reference with him.
I have C++11 around somewhere too...
edit: Also, I might have some more stuff to add to this tomorrow... Might as well try to make it as complete as I can for a general overview.
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]