diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d79ccce7..f3699292b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5515,6 +5515,7 @@ A total of 29 people contributed to this release. Thank you to the following con
+- [`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)_ diff --git a/base/special/floorsd/README.md b/base/special/floorsd/README.md index 180c18b0f..105156ccc 100644 --- a/base/special/floorsd/README.md +++ b/base/special/floorsd/README.md @@ -83,6 +83,22 @@ for ( i = 0; i < 100; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + +
diff --git a/base/special/floorsd/docs/types/test.ts b/base/special/floorsd/docs/types/test.ts index e85727f21..c2763b402 100644 --- a/base/special/floorsd/docs/types/test.ts +++ b/base/special/floorsd/docs/types/test.ts @@ -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 diff --git a/base/special/floorsd/src/main.c b/base/special/floorsd/src/main.c index 7a0ba5fa9..b87b9ea9d 100644 --- a/base/special/floorsd/src/main.c +++ b/base/special/floorsd/src/main.c @@ -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: