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
25 lines (24 loc) • 525 B
JavaScript
export const numberDocs = {
name: 'number',
category: 'Construction',
syntax: [
'x',
'number(x)',
'number(unit, valuelessUnit)'
],
description:
'Create a number or convert a string or boolean into a number.',
examples: [
'2',
'2e3',
'4.05',
'number(2)',
'number("7.2")',
'number(true)',
'number([true, false, true, true])',
'number(unit("52cm"), "m")'
],
seealso: [
'bignumber', 'boolean', 'complex', 'fraction', 'index', 'matrix', 'string', 'unit'
]
}