mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
16 lines
361 B
JavaScript
16 lines
361 B
JavaScript
module.exports = {
|
|
'name': 'isNegative',
|
|
'category': 'Utils',
|
|
'syntax': [
|
|
'isNegative(x)'
|
|
],
|
|
'description': 'Test whether a value is negative: smaller than zero.',
|
|
'examples': [
|
|
'isNegative(2)',
|
|
'isNegative(0)',
|
|
'isNegative(-4)',
|
|
'isNegative([3, 0.5, -2])'
|
|
],
|
|
'seealso': ['isInteger', 'isNumeric', 'isPositive', 'isZero']
|
|
};
|