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.

21 lines (20 loc) 379 B
module.exports = { 'name': 'unit', 'category': 'Type', 'syntax': [ 'value unit', 'unit(value, unit)', 'unit(string)' ], 'description': 'Create a unit.', 'examples': [ '5.5 mm', '3 inch', 'unit(7.1, "kilogram")', 'unit("23 deg")' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'index', 'matrix', 'number', 'string' ] };