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

Method constructor

lib.commonjs/utils/fixednumber.js:186–193  ·  view source on GitHub ↗

* @private

(guard, value, format)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.70
getTensFunction · 0.70

Tested by

no test coverage detected