Permalink
Browse files

Publish v5.3.0

  • Loading branch information...
josdejong committed Nov 29, 2018
1 parent da5bbd8 commit 638ed7ec839bf1a5968b04cf31e1fa523b1d5197
@@ -1,6 +1,6 @@
# History
# not yet released, version 5.3.0
# 2018-11-29, version 5.3.0
- Implemented function `hasNumericValue`. Thanks @Sathish-kumar-Subramani.
- Fix #1326: non-ascii character in print.js.
@@ -283,6 +283,7 @@ Function | Description
Function | Description
---- | -----------
[math.clone(x)](functions/clone.md) | Clone an object.
[math.hasNumericValue(x)](functions/hasNumericValue.md) | Test whether a value is an numeric value.
[math.isInteger(x)](functions/isInteger.md) | Test whether a value is an integer number.
[math.isNaN(x)](functions/isNaN.md) | Test whether a value is NaN (not a number).
[math.isNegative(x)](functions/isNegative.md) | Test whether a value is negative: smaller than zero.
@@ -0,0 +1,45 @@
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
# Function hasNumericValue
Test whether a value is an numeric value.
## Syntax
```js
math.hasNumericValue(x)
```
### Parameters
Parameter | Type | Description
--------- | ---- | -----------
`x` | * | Value to be tested
### Returns
Type | Description
---- | -----------
boolean | Returns true when `x` is a `number`, `BigNumber`, `Fraction`, `Boolean`, or a `String` containing number. Returns false for other types. Throws an error in case of unknown types.
## Examples
```js
math.hasNumericValue(2) // returns true
math.hasNumericValue(0) // returns true
math.hasNumericValue(math.bignumber(500)) // returns true
math.hasNumericValue(math.fraction(4)) // returns true
math.hasNumericValue(math.complex('2-4i') // returns false
math.hasNumericValue('3') // returns true
math.hasNumericValue([2.3, 'foo', false]) // returns [true, false, true]
```
## See also
[isZero](isZero.md),
[isPositive](isPositive.md),
[isNegative](isNegative.md),
[isInteger](isInteger.md)
@@ -4,7 +4,7 @@
Compute the sign of a value. The sign of a value x is:
- 1 when x > 1
- 1 when x > 0
- -1 when x < 0
- 0 when x == 0

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,6 +1,6 @@
{
"name": "mathjs",
"version": "5.2.3",
"version": "5.3.0",
"description": "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 different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.",
"author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
"contributors": [
@@ -1,3 +1,3 @@
module.exports = '5.2.3'
module.exports = '5.3.0'
// Note: This file is automatically generated when building math.js.
// Changes made in this file will be overwritten.

0 comments on commit 638ed7e

Please sign in to comment.