Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jul 21, 2024
1 parent 5316fe8 commit 8660690
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5515,6 +5515,7 @@ A total of 29 people contributed to this release. Thank you to the following con

<details>

- [`8de8d90`](https://github.com/stdlib-js/stdlib/commit/8de8d90b8a5d72f7c2e57ae21593be5f5f1eb8e7) - **refactor:** perform explicit cast [(#2642)](https://github.com/stdlib-js/stdlib/pull/2642) _(by Gunj Joshi)_
- [`6a0cbd9`](https://github.com/stdlib-js/stdlib/commit/6a0cbd9c10f0895d795be449fe1ea2a456f2683a) - **test:** fix tests for native implementation [(#2641)](https://github.com/stdlib-js/stdlib/pull/2641) _(by Gunj Joshi)_
- [`ead1c3b`](https://github.com/stdlib-js/stdlib/commit/ead1c3b780527d8068d9c076e85688be94d53775) - **chore:** update package meta data [(#2640)](https://github.com/stdlib-js/stdlib/pull/2640) _(by stdlib-bot, Athan Reines)_
- [`5df976a`](https://github.com/stdlib-js/stdlib/commit/5df976abacaaf3082890fa852e40edfdf1b79f4b) - **feat:** update namespace TypeScript declarations [(#2637)](https://github.com/stdlib-js/stdlib/pull/2637) _(by stdlib-bot, Philipp Burckhardt)_
Expand Down
16 changes: 16 additions & 0 deletions base/special/floorsd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@ for ( i = 0; i < 100; i++ ) {

<!-- /.examples -->

<!-- C interface documentation. -->

* * *

<section class="c">

## C APIs

<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->

<section class="intro">

</section>

<!-- /.intro -->

<!-- C usage documentation. -->

<section class="usage">
Expand Down
14 changes: 0 additions & 14 deletions base/special/floorsd/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ import floorsd = require( './index' );

// The compiler throws an error if the function is provided values other than numbers...
{
floorsd( true, 3 ); // $ExpectError
floorsd( false, 2 ); // $ExpectError
floorsd( '5', 1 ); // $ExpectError
floorsd( [], 1 ); // $ExpectError
floorsd( {}, 2 ); // $ExpectError
floorsd( ( x: number ): number => x, 2 ); // $ExpectError

floorsd( 9, true ); // $ExpectError
floorsd( 9, false ); // $ExpectError
floorsd( 5, '5' ); // $ExpectError
floorsd( 8, [] ); // $ExpectError
floorsd( 9, {} ); // $ExpectError
floorsd( 8, ( x: number ): number => x ); // $ExpectError

floorsd( true, 3, 2 ); // $ExpectError
floorsd( false, 2, 2 ); // $ExpectError
floorsd( '5', 1, 2 ); // $ExpectError
Expand Down
2 changes: 1 addition & 1 deletion base/special/floorsd/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ double stdlib_base_floorsd( const double x, const int32_t n, const int32_t b ) {
} else {
exp = stdlib_base_ln( stdlib_base_abs( x ) ) / stdlib_base_ln( (double)b );
}
exp = stdlib_base_floor( exp - n + 1.0 );
exp = stdlib_base_floor( exp - (double)n + 1.0 );
s = stdlib_base_pow( (double)b, stdlib_base_abs( exp ) );

// Check for overflow:
Expand Down

0 comments on commit 8660690

Please sign in to comment.