Say you do a series of calculations and come up with a value.
now you dont want to display the calculated value but you want to check to see which of the following values it is closest to: 1/4000, 1/2000, 1/1000, 1/500, 1/250, 1/125, 1/60, 1/30,
1/15, 1/8, 1/4, 1/2, 1, 2, 4, 8, 15, 30, 60
how do you do that in C
Also can some one please tell me how to demonstrate that in psuedocode??
thanks