MCPcopy
hub / github.com/autoNumeric/autoNumeric / _roundFormattedValueShownOnFocus

Method _roundFormattedValueShownOnFocus

src/AutoNumeric.js:5748–5750  ·  view source on GitHub ↗

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

(value, settings)

Source from the content-addressed store, hash-verified

5746 * @private
5747 */
5748 static _roundFormattedValueShownOnFocus(value, settings) {
5749 return this._roundValue(value, settings, Number(settings.decimalPlacesShownOnFocus));
5750 }
5751
5752 /**
5753 * Round the given `value` with the number of decimal places to show for the element if unfocused.

Callers 4

formatMethod · 0.95
setMethod · 0.80

Calls 1

_roundValueMethod · 0.95

Tested by

no test coverage detected