Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var isNonNegativeIntegerf = require( '@stdlib/math/base/assert/is-nonnegative-in

#### isNonNegativeIntegerf( x )

Tests if a finite [single-precision floating-point number][ieee754] is a nonnegative `integer`.
Tests if a finite [single-precision floating-point number][ieee754] is a nonnegative integer.

```javascript
var bool = isNonNegativeIntegerf( 1.0 );
Expand All @@ -53,7 +53,7 @@ bool = isNonNegativeIntegerf( -10.0 );

## Notes

- The function assumes a **finite** `number`. If provided positive `infinity`, the function will return `true`, when, in fact, the result is undefined. If `x` can be `infinite`, wrap the implementation as follows:
- The function assumes a **finite** number. If provided positive `infinity`, the function will return `true`, when, in fact, the result is undefined. If `x` can be `infinite`, wrap the implementation as follows:

```javascript
function check( x ) {
Expand Down Expand Up @@ -141,6 +141,8 @@ bool = isNonNegativeIntegerf( NaN );
Tests if a finite [single-precision floating-point number][ieee754] is a nonnegative integer.

```c
#include <stdbool.h>

bool out = stdlib_base_is_nonnegative_integerf( 1.0f );
// returns true

Expand Down
Loading