when I'm looking at the "Variant Data Type" documantation, it says that variant with subtype of double can support a positive value of maximum "1.79769313486232E308" (15 digits) and that "An error occurs when Variant variables containing Currency, Decimal, and Double values exceed their respective ranges." However, when I'm running the following code:
y = 999999999999999999999999999
y = CStr(CDBL(y))
MsgBox y
I do not recive an error, instead I am getting a msgbox with the following output: "1e+27" (27 is the number of digits in y).
What is the explantion to this? how is "y" stored in the memory?
I havn't found an answer nither in variant documentation nor in CDbl function documentation.
Thanks.