Skip to content

Commit 9a15d63

Browse files
committed
Auto-generated commit
1 parent 78d28ca commit 9a15d63

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/.keepalive

-1
This file was deleted.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`2ea848b`](https://github.com/stdlib-js/stdlib/commit/2ea848b62b686e1e9d861f7df25ece23a7d80798) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
2526
- [`ff25e13`](https://github.com/stdlib-js/stdlib/commit/ff25e1324e1507cc076078e82badce7fdf7915f6) - **docs:** remove excess whitespace _(by Philipp Burckhardt)_
2627
- [`140b517`](https://github.com/stdlib-js/stdlib/commit/140b5172075f08678b84b5f92b7feeacfc777119) - **feat:** add `math/base/assert/is-integerf` _(by Gunj Joshi, Philipp Burckhardt)_
2728

examples/c/example.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
#include <stdbool.h>
2323

2424
int main( void ) {
25-
float x;
26-
bool v;
27-
int i;
25+
float x;
26+
bool v;
27+
int i;
2828

29-
for ( i = 0; i < 100; i++ ) {
30-
x = ( ( (float)rand() / (float)RAND_MAX ) * 100.0f ) - 50.0f;
31-
v = stdlib_base_is_integerf( x );
32-
printf( "x = %f, is_integer(x) = %s\n", x, ( v ) ? "true" : "false" );
33-
}
29+
for ( i = 0; i < 100; i++ ) {
30+
x = ( ( (float)rand() / (float)RAND_MAX ) * 100.0f ) - 50.0f;
31+
v = stdlib_base_is_integerf( x );
32+
printf( "x = %f, is_integer(x) = %s\n", x, ( v ) ? "true" : "false" );
33+
}
3434
}

src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
* // returns true
3333
*/
3434
bool stdlib_base_is_integerf( const float x ) {
35-
return ( x == stdlib_base_floorf( x ) );
35+
return ( x == stdlib_base_floorf( x ) );
3636
}

0 commit comments

Comments
 (0)