MCPcopy
hub / github.com/josdejong/mathjs / round

Method round

types/index.d.ts:5470–5470  ·  view source on GitHub ↗

* Round a value towards the nearest integer. For matrices, the function * is evaluated element wise. * @param n Number of decimals Default value: 0.

(
    this: MathJsChain<T>,
    n?: number | BigNumber | MathCollection
  )

Source from the content-addressed store, hash-verified

5468 * @param n Number of decimals Default value: 0.
5469 */
5470 round<T extends MathNumericType | MathCollection>(
5471 this: MathJsChain<T>,
5472 n?: number | BigNumber | MathCollection
5473 ): MathJsChain<T>

Callers 14

pickRandom.test.jsFile · 0.65
round.test.jsFile · 0.65
norm.test.jsFile · 0.65
sqrtm.test.jsFile · 0.65
parse.test.jsFile · 0.65
testTypes.tsFile · 0.65
isInteger.jsFile · 0.65
_nthComplexRootsFunction · 0.65
round.jsFile · 0.65
zetaComplexFunction · 0.65
isIntegerFunction · 0.65
bigint.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected