6
var
Difference: DWORD // difference shows in milliseconds
// List.Items.Count can be any 0 to ########
[...]
sb.panels[2].Text := FloatToStr((((List.Items.Count)/difference)/1000));
我想結果文本任何格式化### ##(保留兩位小數)。使用FloatToStrF是沒有成功的(似乎不適用於DWORD)。
感謝
我已經嘗試所有這些解決方案..例如: sb.panels [2]。文本:= FormatFloat('#,# #(0),((List.Items.Count)/ difference)/ 1000); 結果總是0.那麼超載版本呢?你有一個使用它的例子嗎? – volvox 2009-07-04 02:09:15
也許在你的本地人中,意思是1k的分隔符,你應該使用。代替。 – 2009-07-04 06:57:18