mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
18 lines (17 loc) • 476 B
JavaScript
export const numericDocs = {
name: 'numeric',
category: 'Utils',
syntax: [
'numeric(x)'
],
description: 'Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.',
examples: [
'numeric("4")',
'numeric("4", "number")',
'numeric("4", "BigNumber")',
'numeric("4", "Fraction)',
'numeric(4, "Fraction")',
'numeric(fraction(2, 5), "number)'
],
seealso: ['number', 'fraction', 'bignumber', 'string', 'format']
}