TONUMBER Function

RAMP-TS

TONUMBER Function

Makes a string or other JScript object into a number.

Syntax

myNumber = TONUMBER(oObject); 

 

Parameters

oObject

Required. A JScript object. Usually it would be a string, that needs to be converted to a number. It can also be a number.

 

 

Return Value

Number

Required. The returned number

 

 

Example

Convert the string "12.5" into a number

 

var myNumber = TONUMBER("12.5");