diff --git a/lib/node_modules/@stdlib/math/base/assert/int32-is-odd/README.md b/lib/node_modules/@stdlib/math/base/assert/int32-is-odd/README.md index 0e0a7140be7..14663594bb7 100644 --- a/lib/node_modules/@stdlib/math/base/assert/int32-is-odd/README.md +++ b/lib/node_modules/@stdlib/math/base/assert/int32-is-odd/README.md @@ -81,6 +81,98 @@ for ( i = 0; i < 100; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/assert/int32_is_odd.h" +``` + +#### stdlib_base_int32_is_odd( x ) + +Tests if a 32-bit integer is odd. + +```c +#include + +bool out = stdlib_base_int32_is_odd( 5 ); +// returns true + +out = stdlib_base_int32_is_odd( -2 ); +// returns false +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +bool stdlib_base_int32_is_odd( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/assert/int32_is_odd.h" +#include +#include +#include + +int main( void ) { + const int32_t x[] = { 5, -5, 3, -3, 0, 2 }; + + bool b; + int i; + for ( i = 0; i < 5; i++ ) { + b = stdlib_base_int32_is_odd( x[ i ] ); + printf( "Value: %d. int32 Is Odd? %s.\n", x[ i ], ( b ) ? "True" : "False" ); + } +} +``` + +
+ + + +
+ + +