vba: what is 97.45 * 1# =?

后端 未结 5 1155
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-17 03:36
some_integer = 97.45 * 1#

what does this notation mean? what will some_integer = ?

5条回答
  •  一个人的身影
    2020-12-17 03:58

    1# means "1 as a double". Of course, if some_integer is an integer, then the non-integer portions of the resulting expression will be truncated to 97 (and thus I am confused what it is doing in this case).

    INFO: Type Declaration Character to Data Type Chart (in VBA)

提交回复
热议问题