the compiler automatically takes care of rounding off the no. up to the given decimal point.Another e.g.. float a=3.995654;. printf(“%.2f”,a);. output=4.00;.
確定! 回上一頁