variant double subtype exceed max value

佐手、 提交于 2019-12-02 04:13:14

On assignment of a numerical quantity to a variant, the vbscript runtime will pick the best possible variant type to match that quantity.

In your case, the literal is too large for an integral type so it assigns it to the double "subtype".

Converting a double of this magnitude to a string will produce a string in scientific notation.

As for your documentation

"1.79769313486232E308" (15 digits)

is a little misleading. Read it as 15 significant figures which is about the precision level for a floating point double precision type.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!