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
8 lines • 440 B
JavaScript
export var 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']
};