USFormat.CharToDouble

Previous Next

Converts a character string to a formatted numeric value of type double.

Returns the result of the conversion as a number.

Syntax

SELECT USFormat.CharToDouble(
          string
,         number-format-pattern
)

Both string and number-format-pattern are required. Number-format-pattern must be one of the USoft format patterns for number values.

Example

SELECT USFormat.CharToDouble(
         '3,333.93'
,        '9,999.99'
)

The return value of this statement is the number:

3333.93