grapa.shared.maths.find_nearest

grapa.shared.maths.find_nearest(array, value)

Finds in array the value nearest to value. Returns that value.