![]() |
When I convert unsigned char to double, I'm losing the numbers after the decimal.
For example this simple program outputs 0 and not 0.9:
Code:
#include <iostream> |
Re: When I convert unsigned char to double, I'm losing the numbers after the decimal.
An unsigned char is an integer. It has no fractional part.
Please, once again, read the "Before you make a query" thread and learn to use code tags. These are HTML pages, which means they eat whitespace. Use the tags to preserve your formatting and indentation. It's the polite thing to do in return for the free help. |
| All times are GMT +5.5. The time now is 13:05. |