MCPcopy Index your code
hub / github.com/autoNumeric/autoNumeric / _roundFormattedValueShownOnBlur

Method _roundFormattedValueShownOnBlur

src/AutoNumeric.js:5760–5762  ·  view source on GitHub ↗

* Round the given `value` with the number of decimal places to show for the element if unfocused. * * @param {string|null} value An unformatted numeric value * @param {object} settings * @returns {*} * @private

(value, settings)

Source from the content-addressed store, hash-verified

5758 * @private
5759 */
5760 static _roundFormattedValueShownOnBlur(value, settings) {
5761 return this._roundValue(value, settings, Number(settings.decimalPlacesShownOnBlur));
5762 }
5763
5764 /**
5765 * Round the given `value` with the number of decimal places to show for the element based on the value of isFocused.

Callers 3

setMethod · 0.80

Calls 1

_roundValueMethod · 0.95

Tested by

no test coverage detected