ReadNumber

number ReadNumber(string aString)

Reads the given string and converts it to a number. It can convert hex strings as long as they begin with $. It returns the number generated.

Example
(var aNumber)

= aNumber ReadNumber("500")
=
aNumber ReadNumber("$12AB")