warning C4244: '=' : conversion from 'unsigned int' to 'float', possible loss of data
浮点数不应该能够处理int类型的任何值吗?
unsigned int: 0 to 4,294,967,295
float 3.4E +/- 38 (7 digits)
维基百科:
任何见解都将有所帮助,谢谢。 http://msdn.microsoft.com/en-us/library/s3f49ktz%28VS.80%29.aspxThe advantage of floating-point representation over fixed-point (and
integer) representation is that it can support a much wider range of values.