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.

18 lines (17 loc) 399 B
module.exports = { 'name': 'fraction', 'category': 'Type', 'syntax': [ 'fraction(num)', 'fraction(num,den)' ], 'description': 'Create a fraction from a number or from a numerator and denominator.', 'examples': [ 'fraction(0.125)', 'fraction(1, 3) + fraction(2, 5)' ], 'seealso': [ 'bignumber', 'boolean', 'complex', 'index', 'matrix', 'string', 'unit' ] };