MCPcopy Index your code
hub / github.com/josdejong/mathjs / format

Function format

examples/units.js:103–106  ·  view source on GitHub ↗

* Helper function to format an output a value. * @param {*} value * @return {string} Returns the formatted value

(value)

Source from the content-addressed store, hash-verified

101 * @return {string} Returns the formatted value
102 */
103function format (value) {
104 const precision = 14
105 return _format(value, precision)
106}

Callers 11

printFunction · 0.90
expressions.jsFile · 0.90
printFunction · 0.90
printFunction · 0.90
units.jsFile · 0.90
printFunction · 0.90
printFunction · 0.90
printFunction · 0.90
complex_numbers.jsFile · 0.90
printFunction · 0.90
custom_loading.jsFile · 0.50

Calls 1

_formatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…