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

Method toUnsafeFloat

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

* Returns a float approximation. * * Due to IEEE 754 precission (or lack thereof), this function * can only return an approximation and most values will contain * rounding errors.

()

Source from the content-addressed store, hash-verified

445 * rounding errors.
446 */
447 toUnsafeFloat() { return parseFloat(this.toString()); }
448 /**
449 * Return a new [[FixedNumber]] with the same value but has had
450 * its field set to %%format%%.

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected