mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
22 lines
422 B
JavaScript
22 lines
422 B
JavaScript
module.exports = {
|
|
'name': 'boolean',
|
|
'category': 'Type',
|
|
'syntax': [
|
|
'x',
|
|
'boolean(x)'
|
|
],
|
|
'description':
|
|
'Convert a string or number into a boolean.',
|
|
'examples': [
|
|
'boolean(0)',
|
|
'boolean(1)',
|
|
'boolean(3)',
|
|
'boolean("true")',
|
|
'boolean("false")',
|
|
'boolean([1, 0, 1, 1])'
|
|
],
|
|
'seealso': [
|
|
'bignumber', 'complex', 'index', 'matrix', 'number', 'string', 'unit'
|
|
]
|
|
};
|