UNPKG

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

14 lines (13 loc) 536 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toBestDocs = void 0; const toBestDocs = exports.toBestDocs = { name: 'toBest', category: 'Units', syntax: ['toBest(x)', 'toBest(x, unitList)', 'toBest(x, unitList, options)'], description: 'Converts to the most appropriate display unit.', examples: ['toBest(unit(5000, "m"))', 'toBest(unit(3500000, "W"))', 'toBest(unit(0.000000123, "A"))', 'toBest(unit(10, "m"), "cm")', 'toBest(unit(10, "m"), "mm,km", {offset: 1.5})'], seealso: [] };