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
50 lines (32 loc) • 1.02 kB
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Create a string or convert any object into a string.
Elements of Arrays and Matrices are processed element wise.
```js
math.string(value)
```
Parameter | Type | Description
--------- | ---- | -----------
`value` | * &
Type | Description
---- | -----------
string &
```js
math.string(4.2) // returns string '4.2'
math.string(math.complex(3, 2) // returns string '3 + 2i'
const u = math.unit(5, 'km')
math.string(u.to('m')) // returns string '5000 m'
math.string([true, false]) // returns ['true', 'false']
```
[ ](bignumber.md),
[ ](boolean.md),
[ ](complex.md),
[ ](index.md),
[ ](matrix.md),
[ ](number.md),
[ ](unit.md)