yo people..
I get this warning can you help me to solve the problem..
warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
thx
Printable View
yo people..
I get this warning can you help me to solve the problem..
warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
thx
To avoid seeing this varning again use double type variables instead of float.
Zorik Galstyan
Because a double uses more bytes than a float, you can loose information if you type case from double to float. Use doubles if the numbers are big, but if they are small. Use (double)x = (double)y;
I think it is worth don't use "float" type anymore and always use "double"