close
double 是32位,float 是16位
double表示的範圍和精度比float好
float a=5.0 =>這樣寫會出錯,因為float強制最後用f結尾 => float a=5.0f;
double a=5.0 => 這樣就是對的
全站熱搜
double 是32位,float 是16位
double表示的範圍和精度比float好
float a=5.0 =>這樣寫會出錯,因為float強制最後用f結尾 => float a=5.0f;
double a=5.0 => 這樣就是對的