summaryrefslogtreecommitdiff
path: root/macros/roundn.sci
blob: 87aa25f0a2543f863497a84fba36085da9b20dc1 (plain)
1
2
3
function r=roundn(x,n)
    r=(round(x*10^n))/(10^n);
endfunction