S
subaruwrx88011
Is there anyway to convert a float to an unsigned int without loss of
precision?
Here is what I have....
float giga_hertz;
unisigned int hertz;
giga_hertz = 4.2;
hertz = (unsigned int) (1000000000 * giga_hertz);
I can't get hertz to equal 4,200,000,000.
precision?
Here is what I have....
float giga_hertz;
unisigned int hertz;
giga_hertz = 4.2;
hertz = (unsigned int) (1000000000 * giga_hertz);
I can't get hertz to equal 4,200,000,000.