UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.

23 lines (22 loc) 441 B
module.exports = { 'name': 'number', 'category': 'Type', 'syntax': [ 'x', 'number(x)' ], '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])' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'index', 'matrix', 'string', 'unit' ] };