makeNumber()

Synopsis

Takes a numeric string , str, containing only digits, with an optional leading plus or minus sign, and an optional trailing decimal fraction, and returns the number , or integer value that it represents. If the string does not contain a decimal point, it returns an integer .

Syntax

makeNumber ( str As String ) As Any 
Argument Type Description
str String A numeric string that contains only digits, an optional leading plus or minus sign, and an optional decimal point.

Example 1

An Integer
Intent >makeNumber("12") --> 12

Example 2

A Number
Intent >makeNumber("-12.2")  --> -12.2