C double to unsigned long long Conversion with mingw32
The following line is not working for me under mingw32.
Code:
printf("%.0f == %llu\n", 45252301458.0, (unsigned long long)(45252301458.0)); Quote:
Thanks. |
Are you sure that your compiler treats 'unsigned long long' as a 64 bit integer? Does printf() support 'long long'? Try splitting the 64-bit integer into two 32-bit integers, and try printf()ing those independently.
--- rod. |
All times are GMT -5. The time now is 12:18 PM. |