Val

Kalipso - Form - Expressions - Functions - Functions Descriptions - Numeric Functions - Val

This Function returns a <numeric>, which is the specified Value converted to numeric.

Function available for the following operating systems:

Parameters

  • Value <string> - String value to be converted to numeric.

Examples

Example 1

Val("123") Result = 123

Example 2

Val("1.23") Result = 1.23

Example 3

Val("Kalipso") Result = 0

Example 4

Val("1minus3") Result = 1

Example 5

Val("1D3") Result = 1000

Example 6

Val("1d2") Result = 100

Example 7

Val("1D-3") Result = 0.001

Example 8

Val("1d-2") Result = 0.01

Example 9

Val("1E3") Result = 1000

Example 10 Val("1e2") Result = 100

Example 11 Val("1E-3") Result = 0.001

Example 12 Val("1e-2") Result = 0.01

Example 13 Val("1" + "2" + "3") Result = 123

The specified Value can contain an optional plus or minus sign.

The specified Value can contain an optional decimal-point character.

The specified Value can contain an optional exponent part, which itself consists on an "e" or "E" character followed by an optional sign and a sequence of digits.

Last updated