Is this float safe? Maybe use fmin / 1000.