in reply to matching a number
if (($input - 0.1) <= $1 && $1 <= ($input + 0.1)) { <insert code here>; } [download]