L lordofbinladen Unregistered / Unconfirmed GUEST, unregistred user! 2005-01-13 #1 f := 1226.921 1. 如何取小数两位? 2. 如何转换成整数(integer)?
L lordofbinladen Unregistered / Unconfirmed GUEST, unregistred user! 2005-01-13 #2 f := 1226.921 1. 如何取小数两位? 2. 如何转换成整数(integer)?
J jennykiller Unregistered / Unconfirmed GUEST, unregistred user! 2005-01-13 #3 舍入用RoundTo,截取整数用Trunc
C chengangsir Unregistered / Unconfirmed GUEST, unregistred user! 2005-03-20 #5 format('%.2f',[f]) round()四舍五入 trunc()无四舍五入
Y Yvonne Unregistered / Unconfirmed GUEST, unregistred user! 2005-03-22 #6 RoundTo(1226.921,-2) 1226.92 Trunc(1226.921) 1226 Round(1226.921) 1227
A Avalon Unregistered / Unconfirmed GUEST, unregistred user! 2005-03-22 #7 formatfloat('0.00',1226.921) formatfloat('0',1226.921) RoundTo和Round是四舍六入五取双 看看帮助