// //Round function // //This function is used to round float value by decimal point // //Syntax rnum=round(value,nn); //argument 1 is target value to be rounded. //argument 2 is figure. plus value is decimal figure over 1.0 // zero value is decimal figure at 0 // minus value is decimal points figure under 1.0. // //Example // round(356.25,0) -> 365 round(365.25,-1) -> 365.3 round(365.25,1) -> 370 //Example 2 //three figure random integer generates by 100 times loop. clear; for(i=0;i<=100;i++) { rand=random; no=round(rand*1000,0); outrec; }