Decimal

Converts a value to a decimal (floating point value).

Notes

  • If the parameter for Decimal is a string or a constant, the period is always the decimal separator.
  • The thousands separator is always a comma.
  • If a variable is passed to Decimal, the content is interpreted according to the regional Windows settings for DecimalSeparator and ThousandSeparator.

SYNTAX
Decimal(valueToConvert) 
ARGUMENTS valueToConvert The value to convert.

If an empty string is passed as the parameter value, it results in an exception at runtime.

RETURN Floating point value
EXAMPLE
b = Decimal(a)