vba: what is 97.45 * 1# =?

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

what does this notation mean? what will some_integer = ?

5条回答
  •  死守一世寂寞
    2020-12-17 03:59

    some_integer will be 97.45.

    It's used to treat 1 as a double rather than any other type. (E.G 1 can be treated as an integer, but in this case we want to treat 1 as a double)

    You can think of it as some_integer = 97.45 * 1# as being the same as some_integer = 97.45 * 1.00

提交回复
热议问题