Fix unsigned int to floating point conversion