summaryrefslogtreecommitdiff
path: root/3710/DEPENDENCIES/fpround.sci
blob: 8aaf5b57d5012c4d5abfc353aed6b057bff3a50a (plain)
1
2
3
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