Skip to content

Commit 1f3190b

Browse files
authored
docs: add missing f suffixes and stdbool header in math/base/assert/is-oddf
PR-URL: #3457 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: Gunj Joshi <gunjjoshi8372@gmail.com>
1 parent 143b370 commit 1f3190b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/node_modules/@stdlib/math/base/assert/is-oddf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ Tests if a finite single-precision floating-point number is an odd number.
133133
```c
134134
#include <stdbool.h>
135135
136-
bool out = stdlib_base_is_oddf( 1.0 );
136+
bool out = stdlib_base_is_oddf( 1.0f );
137137
// returns true
138138
139-
out = stdlib_base_is_oddf( 4.0 );
139+
out = stdlib_base_is_oddf( 4.0f );
140140
// returns false
141141
```
142142

lib/node_modules/@stdlib/math/base/assert/is-oddf/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/is_oddf.h"
2020
#include "stdlib/math/base/assert/is_evenf.h"
21+
#include <stdbool.h>
2122

2223
/**
2324
* Tests if a finite single-precision floating-point number is an odd number.
@@ -28,7 +29,7 @@
2829
* @example
2930
* #include <stdbool.h>
3031
*
31-
* bool out = stdlib_base_is_oddf( 3.0 );
32+
* bool out = stdlib_base_is_oddf( 3.0f );
3233
* // returns true
3334
*/
3435
bool stdlib_base_is_oddf( const float x ) {

0 commit comments

Comments
 (0)