MCPcopy
hub / github.com/autoNumeric/autoNumeric / unformat

Method unformat

src/AutoNumeric.js:2614–2618  ·  view source on GitHub ↗

* Remove the formatting and keep only the raw unformatted value in the element (as a numericString) * Note: this is loosely based on the previous 'unSet()' function * * By default, values are returned as ISO numeric strings (i.e. "1234.56" or "-1234.56"), where the decimal character i

()

Source from the content-addressed store, hash-verified

2612 * @returns {AutoNumeric}
2613 */
2614 unformat() {
2615 this._setElementValue(this.getNumericString());
2616
2617 return this;
2618 }
2619
2620 /**
2621 * Remove the formatting and keep only the localized unformatted value in the element, with the option to override the default outputFormat if needed

Callers 8

unformatAndSetMethod · 0.95
localizeMethod · 0.95
_serializeMethod · 0.95
constructorMethod · 0.80
formUnformatMethod · 0.80
_unformatAltHoveredMethod · 0.80

Calls 15

_setElementValueMethod · 0.95
getNumericStringMethod · 0.95
getDefaultConfigMethod · 0.95
_removeBracketsMethod · 0.95
_roundRawValueMethod · 0.95
_toLocaleMethod · 0.95
isNumberStrictMethod · 0.80

Tested by

no test coverage detected