File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/node_modules/@stdlib/math/base/assert/is-oddf Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,10 @@ Tests if a finite single-precision floating-point number is an odd number.
133
133
` ` ` c
134
134
#include <stdbool.h>
135
135
136
- bool out = stdlib_base_is_oddf( 1.0 );
136
+ bool out = stdlib_base_is_oddf( 1.0f );
137
137
// returns true
138
138
139
- out = stdlib_base_is_oddf( 4.0 );
139
+ out = stdlib_base_is_oddf( 4.0f );
140
140
// returns false
141
141
` ` `
142
142
Original file line number Diff line number Diff line change 18
18
19
19
#include "stdlib/math/base/assert/is_oddf.h"
20
20
#include "stdlib/math/base/assert/is_evenf.h"
21
+ #include <stdbool.h>
21
22
22
23
/**
23
24
* Tests if a finite single-precision floating-point number is an odd number.
28
29
* @example
29
30
* #include <stdbool.h>
30
31
*
31
- * bool out = stdlib_base_is_oddf( 3.0 );
32
+ * bool out = stdlib_base_is_oddf( 3.0f );
32
33
* // returns true
33
34
*/
34
35
bool stdlib_base_is_oddf ( const float x ) {
You can’t perform that action at this time.
0 commit comments