improve float ranges, for #2333