jiangchengfeiyi-xiaochengxu/node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/boolean.js
2025-01-02 11:13:50 +08:00

14 lines
498 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.booleanDocs = void 0;
const booleanDocs = exports.booleanDocs = {
name: 'boolean',
category: 'Construction',
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']
};