@parsenum() Function |
![]() ![]() ![]() |
@parsenum() function is used to parse the formatted number existing in the given string. Syntax: @parsenum(formatted-number string, format-pattern[, language-code]) formatted-number string The string that keeps the formatted number to parse. format-pattern The pattern that will guide the parsinf operation. See Number format symbols. language-code The language code that determines the thousand and decimal characters. If it is not specified, the language code of the current page is used.
Examples: @parsenum('1 200,23','#,###.00','fi') @// result: 1200.23 @set(v:price, parsenum('001,200.23','000,000.00','en') ) @// result: 1200.23
See @fmtnum() |