Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You might have encountered in the past is C/C++ silently promoting your floats to double.

An example, `printf("%f", float_value)` will actually promote float_value to a double. Or calling a function from `math.h` with a float constant



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: