You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

parse_number()

Usage

parse_number(string[, locale])

Description

Parses the given string into a numerical value. With the second (optional) parameter you can pass a locale string to take a country-/language specific number formatting into account.

Examples

${parse_number('123,456,789.123', 'en')}
${parse_number('123.456.789,123', 'de')}

results in

123456789.123
123456789.123

Search results for "parse_number()"

parse_number()

Parses the given string into a numerical value. With the second (optional) parameter you can pass a locale string to take a country-/language specific number formatting into account.

parse_number(string[, locale])