I have two decimal value (double) and a given number (double), How do i find the nearest number?
<p>I have a range 20.2 as the lower value and 21.2 as the higher value and the given number is 20.54, then I must return 20.2 as the nearest value found else if it was 20.92 then i need to return 21.2 as the nearest value. Any suggestions?</p>
