I want to find the nearest value

Refer below post - it help you -