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

Method constructor

src.ts/utils/fixednumber.ts:253–265  ·  view source on GitHub ↗

* @private

(guard: any, value: bigint, format: any)

Source from the content-addressed store, hash-verified

251 * @private
252 */
253 constructor(guard: any, value: bigint, format: any) {
254 assertPrivate(guard, _guard, "FixedNumber");
255
256 this.#val = value;
257
258 this.#format = format;
259
260 const _value = toString(value, format.decimals);
261
262 defineProperties<FixedNumber>(this, { format: format.name, _value });
263
264 this.#tens = getTens(format.decimals);
265 }
266
267 /**
268 * If true, negative values are permitted, otherwise only

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