Convert a String Representing a Number to a Number

Your rating: None Average: 3 (2 votes)

Syntax

Value(str)

Description
Use the Value function to convert a string representing a number to the number.

str: value to be passed to the function.

Example:
The example sets &VAL1 to 5.25 and &VAL2 to 500:
&VAL1 = Value("5.25");
&VAL2 = Value("500");

Check out the following post to convert a number variable type to a string type.

Please try to help out with unanswered topics on the forum. Chances are you have had the same issue/question some time in your IT career!