port of SetFilterFloatRange function