<div dir="ltr"><div style="font-size:12.8000001907349px">I'm wondering if there's an object that can find in an array which is the closest value in the array ro an input value.<br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Say I have an array/list of <u>1.1</u> , <u>2.2</u> , <u>3.3</u>, then I give as the input the number "3" and the object outputs <b>3.3</b></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I've done this as a patch already, but I wonder if theres any solution that's "ready made".</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">thanks </div></div>