0
    +关注 私聊
  • 回风

    第12楼2021/01/07

    Function TranValue(rng As Double, number As Integer) As Double

    TranValue = Round(rng, number)

    End Function 只需要这样写就可以,不要急着反驳我,你试试就知道了。不同地方Round和Round是不一样的哦!

1
    +关注 私聊
  • 迎风吸烟

    第13楼2021/01/08

    EXCEL的功能的确很多,这只是其中一个功能

0
    +关注 私聊
  • bing031

    第14楼2021/01/08

    程序很好,实现了四舍六入五成双,就是保留有效位数要调整参数。

    回风(Insm_3139229b) 发表:Function TranValue(rng As Double, number As Integer) As Double

    TranValue = Round(rng, number)

    End Function 只需要这样写就可以,不要急着反驳我,你试试就知道了。不同地方Round和Round是不一样的哦!

0
    +关注 私聊
  • wzlhh

    第15楼2021/01/08

    学习。非常感谢!

0
    +关注 私聊
  • 回风

    第16楼2021/01/09

    第二个参数 As Integer,就是用整数表示需要保留的位数

    bing031(bing031) 发表: 程序很好,实现了四舍六入五成双,就是保留有效位数要调整参数。

0
    +关注 私聊
  • zhq95

    第17楼2021/01/09

    不错不错,学习了

0
    +关注 私聊
  • jjiang2

    第18楼2021/01/10

    劳民伤财,四舍六入五成双。

0
    +关注 私聊
  • hujiangtao

    第19楼2021/01/11

    应助达人

    很实用赞一个

0
    +关注 私聊
  • lccdcywh

    第20楼2021/01/11

    实用,值得赞!

0
查看更多