num = 1.2343454; numr = Math.round(num*1000)/1000; numc = Math.ceil(num*1000)/1000; trace(numr); //1.234 trace(numc); //1.235