Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
nearest valued solution in Clear category for Nearest Value by quarkov
def nearest_value(values, one):
return min({(abs(n-one), n) for n in values})[1]
April 5, 2019
Comments: