static Float floatCloseTo(Collection l, float x, double margin) { for (float f : unnull(l)) if (abs(f-x) <= margin) ret f; null; }