double 是32位,float 是16位

double表示的範圍和精度比float好

float a=5.0 =>這樣寫會出錯,因為float強制最後用f結尾 => float a=5.0f;
double a=5.0 => 這樣就是對的
arrow
arrow
    全站熱搜

    捷米看世界 發表在 痞客邦 留言(0) 人氣()