double pbpm = 0;
int bpm = 84940;
pbpm = (bpm) * (1.025);
用計算機按出來,pbpm=87063.5
為何使用偵錯方式逐步跑,pbpm=87063.499999999985
請問各位專家大大:
是宣告型態有錯,還是什麼原因?