parse_number()

Search
Feedback

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

Graph-Browser

Related Articles
About this article
Last change 2017-07-17
Topics