Val

 

Purpose:

The string is interpreted and returned as a number. If an error occurs, the return value is 0. The decimal sign must always be entered as ".".

Parameter:

String

Return value:

Number

Example:

Val("3.141")                        Result: 3.141

Val("3,141")                        Result: 3

Val("3.141e2")                    Result: 314.2

Val(ChrSubst$("3,141", ",", "."))       Result: 3.141