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

Method toFormat

lib.commonjs/utils/fixednumber.js:454–456  ·  view source on GitHub ↗

* Return a new [[FixedNumber]] with the same value but has had * its field set to %%format%%. * * This will throw if the value cannot fit into %%format%%.

(format)

Source from the content-addressed store, hash-verified

452 * This will throw if the value cannot fit into %%format%%.
453 */
454 toFormat(format) {
455 return FixedNumber.fromString(this.toString(), format);
456 }
457 /**
458 * Creates a new [[FixedNumber]] for %%value%% divided by
459 * %%decimal%% places with %%format%%.

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.95
fromStringMethod · 0.45

Tested by

no test coverage detected