int x=(int)n;. float y=n-(float)x;. 得出的x為資料的整數部分,y為資料的小數部分。 拓展資料:. 浮點型資料型別,float 資料型別用於儲存單精度浮 ...
確定! 回上一頁