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

8 lines 411 B
export var 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: [] };