diff options
Diffstat (limited to 'macros/roundn.sci')
-rw-r--r-- | macros/roundn.sci | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/macros/roundn.sci b/macros/roundn.sci new file mode 100644 index 0000000..87aa25f --- /dev/null +++ b/macros/roundn.sci @@ -0,0 +1,3 @@ +function r=roundn(x,n) + r=(round(x*10^n))/(10^n); +endfunction |