![]() |
|
Floating Point Trouble! [Information] - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: C, C++, & Obj-C (https://sinister.ly/Forum-C-C-Obj-C) +--- Thread: Floating Point Trouble! [Information] (/Thread-Floating-Point-Trouble-Information) Pages:
1
2
|
RE: Floating Point Trouble! [Information] - ArkPhaze - 05-22-2013 (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. 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. |