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

Method toFormat

lib.esm/utils/fixednumber.js:451–453  ·  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

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

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.95
fromStringMethod · 0.45

Tested by

no test coverage detected