summaryrefslogtreecommitdiff
path: root/3710/DEPENDENCIES
diff options
context:
space:
mode:
Diffstat (limited to '3710/DEPENDENCIES')
-rw-r--r--3710/DEPENDENCIES/fpround.sci4
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