MCPcopy
hub / github.com/autoNumeric/autoNumeric / _roundRawValue

Method _roundRawValue

src/AutoNumeric.js:5736–5738  ·  view source on GitHub ↗

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

(value, settings)

Source from the content-addressed store, hash-verified

5734 * @private
5735 */
5736 static _roundRawValue(value, settings) {
5737 return this._roundValue(value, settings, settings.decimalPlacesRawValue);
5738 }
5739
5740 /**
5741 * Round the given `value` with the number of decimal places to show for the element if focused.

Callers 2

unformatMethod · 0.95
setMethod · 0.80

Calls 1

_roundValueMethod · 0.95

Tested by

no test coverage detected