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

Method toFormat

src.ts/utils/fixednumber.ts:556–558  ·  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: FixedFormat)

Source from the content-addressed store, hash-verified

554 * This will throw if the value cannot fit into %%format%%.
555 */
556 toFormat(format: FixedFormat): FixedNumber {
557 return FixedNumber.fromString(this.toString(), format);
558 }
559
560 /**
561 * Creates a new [[FixedNumber]] for %%value%% divided by

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.95
fromStringMethod · 0.45

Tested by

no test coverage detected