as I understand format with precision works like round(float,precision), so this code run bad (from time to time)
var f1 = 1.545, f2=1.445; SYS.println(MAT.round(f1) + " " + MAT.round(f2)); SYS.println(f1.format("%.0f") + " " + f2.format("%.0f")); SYS...