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
19 lines (18 loc) • 333 B
JavaScript
export const unaryMinusDocs = {
name: 'unaryMinus',
category: 'Operators',
syntax: [
'-x',
'unaryMinus(x)'
],
description:
'Inverse the sign of a value. Converts booleans and strings to numbers.',
examples: [
'-4.5',
'-(-5.6)',
'-"22"'
],
seealso: [
'add', 'subtract', 'unaryPlus'
]
}