MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / constructor

Method constructor

lib.esm/utils/fixednumber.js:183–190  ·  view source on GitHub ↗

* @private

(guard, value, format)

Source from the content-addressed store, hash-verified

181 * @private
182 */
183 constructor(guard, value, format) {
184 assertPrivate(guard, _guard, "FixedNumber");
185 this.#val = value;
186 this.#format = format;
187 const _value = toString(value, format.decimals);
188 defineProperties(this, { format: format.name, _value });
189 this.#tens = getTens(format.decimals);
190 }
191 /**
192 * If true, negative values are permitted, otherwise only
193 * positive values and zero are allowed.

Callers

nothing calls this directly

Calls 4

assertPrivateFunction · 0.90
definePropertiesFunction · 0.90
toStringFunction · 0.70
getTensFunction · 0.70

Tested by

no test coverage detected