naeemqaswar
2/16/2017 - 10:18 AM

Ceil Floating Number - (After Point)

Ceil Floating Number - (After Point)

function ceil_float_number(rnum, rlength) {
    var new_number = Math.ceil(rnum * Math.pow(10, rlength-1)) / Math.pow(10, rlength-1);
    return new_number.toFixed(rlength);
}