diff options
Diffstat (limited to '3710/DEPENDENCIES/fpround.sci')
-rw-r--r-- | 3710/DEPENDENCIES/fpround.sci | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/3710/DEPENDENCIES/fpround.sci b/3710/DEPENDENCIES/fpround.sci new file mode 100644 index 000000000..8aaf5b57d --- /dev/null +++ b/3710/DEPENDENCIES/fpround.sci @@ -0,0 +1,4 @@ +// Function to round a floating point number x to n decimal places
+function [f]= fpround(x,n)
+f=round(x*10^n)/10^n;
+endfunction
|