fix precision of float values and thresholds