From: trebor777 [mailto:mrobert / trebor777.net]=20
# a =3D myhash.keys.sort[value-0.05..value+0.05]
# then i just use=20
# myhash[a[x]]

can you test without hash?

~> a
=3D> [1, 1.25, 1.9, 2, 3, 3.5]
~> val
=3D> 1.85
~> a[val-0.5..val+0.5]
=3D> [1.25, 1.9]
~> a.slice (val-0.5..val+0.5)
=3D> [1.25, 1.9]

kind regards -botp