diff --git a/lib/node_modules/@stdlib/math/base/assert/is-odd/examples/c/example.c b/lib/node_modules/@stdlib/math/base/assert/is-odd/examples/c/example.c index 3482449e6129..48f9996f5f08 100644 --- a/lib/node_modules/@stdlib/math/base/assert/is-odd/examples/c/example.c +++ b/lib/node_modules/@stdlib/math/base/assert/is-odd/examples/c/example.c @@ -21,12 +21,12 @@ #include int main( void ) { - const double x[] = { 5.0, -5.0, 3.14, -3.14, 0.0, 0.0/0.0 }; + const double x[] = { 5.0, -5.0, 3.14, -3.14, 0.0, 0.0/0.0 }; - bool b; - int i; - for ( i = 0; i < 6; i++ ) { - b = stdlib_base_is_odd( x[ i ] ); - printf( "Value: %lf. Is Odd? %s.\n", x[ i ], ( b ) ? "True" : "False" ); - } + bool b; + int i; + for ( i = 0; i < 6; i++ ) { + b = stdlib_base_is_odd( x[ i ] ); + printf( "Value: %lf. Is Odd? %s.\n", x[ i ], ( b ) ? "True" : "False" ); + } } diff --git a/lib/node_modules/@stdlib/math/base/assert/is-odd/src/main.c b/lib/node_modules/@stdlib/math/base/assert/is-odd/src/main.c index 59b4d5e50ea7..96bab7896aa4 100644 --- a/lib/node_modules/@stdlib/math/base/assert/is-odd/src/main.c +++ b/lib/node_modules/@stdlib/math/base/assert/is-odd/src/main.c @@ -20,7 +20,7 @@ #include "stdlib/math/base/assert/is_even.h" /** -* Test if a finite double-precision floating-point number is an odd number. +* Tests if a finite double-precision floating-point number is an odd number. * * @param x input value * @return output value @@ -32,9 +32,9 @@ * // returns true */ bool stdlib_base_is_odd( const double x ) { - // Check sign to prevent overflow... - if ( x > 0.0 ) { - return stdlib_base_is_even( x - 1.0 ); - } - return stdlib_base_is_even( x + 1.0 ); + // Check sign to prevent overflow... + if ( x > 0.0 ) { + return stdlib_base_is_even( x - 1.0 ); + } + return stdlib_base_is_even( x + 1.0 ); }