Ronald said:
Hi all.
When I use IsNumeric on "113D2", I get True.
When I do Val("113D2"), I get 11300 as a result.
I cannot find anything about this in Help.
As noted in the Help file topic for the Val() function, "The Val function
stops reading the string at the first character it can't recognize as part
of a number. Symbols and characters that are often considered parts of
numeric values, such as dollar signs and commas, are not recognized."
However, the IsNumeric function is more flexible (or flawed, depending on
your point of view), and accepts a variety of different forms of numeric
expressions that, so far as the function is concerned, "can be evaluated as
a number." In particular, suffixes of the form "D#" or "E#" (where # is one
or more numeric digits) are used in scientific (or "exponential") notation
to indicate powers of 10: 1E2 and 1D2 are both equivalent to "1 times 10 to
the 2nd power", or 100.