Question: Develop an M-file function called rounder to round a number x to a specified number of decimal digits ,n. the first line of the function
Develop an M-file function called rounder to round a number x to a specified number of decimal digits ,n. the first line of the function should be set up as function xr=rounder(x, n) test the program by rounding each of the following to decimal digits :x=477.9587,-477.9587,0.125,0.135,-0.125,and -0.135.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
