以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [讨论]  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=48562)

--  作者:有点甜
--  发布时间:2014/3/31 21:57:00
--  

 测试代码

 

Dim weight As Double = 1.23

Dim money As Double = iif(weight <= 0.8, 1, 1 + Math.Ceiling(Math.Round(weight-0.8,6) / 0.4) * 0.2)

msgbox(money)