parse

returns a number from the formatted string

number parse(string value,object config);
value
stringthe string which needs formatting config
objectan object of formatting configuration options
numbera number from the formatted string
Details

The config object can contain the following attributes:

const num1 = webix.Number.parse("($10'009.00)", {
    decimalSize: 2, groupSize: 3,
    decimalDelimiter: ".", groupDelimiter: "'",
    minusPosition:"parentheses",
    minusSign:"()",
    priceTemplate:"${obj}"
});
// -> -10009
See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.