Was tracking down a bug in my app and couldnt figure out what was wrong initially.
All the code seemed right but setting a value to code like
value = string.ToInteger
seemed to be the culprit. Sure enough the string contained a value like 3.0e+2 (an integer expressed in exponential form) But the docs say