@stdlib/number-float32-base-exponent 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +4 -4
- package/src/addon.c +0 -2
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ var toFloat32 = require( '@stdlib/number-float64-base-to-float32' );
|
|
|
63
63
|
var exp = exponentf( toFloat32( 3.14e34 ) ); // => 2^114 ~ 2.08e34
|
|
64
64
|
// returns 114
|
|
65
65
|
|
|
66
|
-
exp = exponentf( toFloat32( 3.14e-34 ) ); //
|
|
66
|
+
exp = exponentf( toFloat32( 3.14e-34 ) ); // => 2^-112 ~ 1.93e-34
|
|
67
67
|
// returns -112
|
|
68
68
|
|
|
69
69
|
exp = exponentf( toFloat32( -3.14 ) );
|
|
@@ -255,8 +255,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
255
255
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/number-float32-base-exponent.svg
|
|
256
256
|
[npm-url]: https://npmjs.org/package/@stdlib/number-float32-base-exponent
|
|
257
257
|
|
|
258
|
-
[test-image]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
259
|
-
[test-url]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml?query=branch:v0.2.
|
|
258
|
+
[test-image]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
259
|
+
[test-url]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml?query=branch:v0.2.3
|
|
260
260
|
|
|
261
261
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/number-float32-base-exponent/main.svg
|
|
262
262
|
[coverage-url]: https://codecov.io/github/stdlib-js/number-float32-base-exponent?branch=main
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/number-float32-base-exponent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Return an integer corresponding to the unbiased exponent of a single-precision floating-point number.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@stdlib/constants-float32-exponent-bias": "^0.2.
|
|
37
|
-
"@stdlib/constants-float32-exponent-mask": "^0.2.
|
|
36
|
+
"@stdlib/constants-float32-exponent-bias": "^0.2.2",
|
|
37
|
+
"@stdlib/constants-float32-exponent-mask": "^0.2.2",
|
|
38
38
|
"@stdlib/number-float32-base-to-word": "^0.2.1",
|
|
39
|
-
"@stdlib/utils-library-manifest": "^0.2.
|
|
39
|
+
"@stdlib/utils-library-manifest": "^0.2.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {},
|
|
42
42
|
"engines": {
|
package/src/addon.c
CHANGED
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
/**
|
|
26
26
|
* Receives JavaScript callback invocation data.
|
|
27
27
|
*
|
|
28
|
-
* @private
|
|
29
28
|
* @param env environment under which the function is invoked
|
|
30
29
|
* @param info callback data
|
|
31
30
|
* @return Node-API value
|
|
@@ -76,7 +75,6 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
|
|
|
76
75
|
/**
|
|
77
76
|
* Initializes a Node-API module.
|
|
78
77
|
*
|
|
79
|
-
* @private
|
|
80
78
|
* @param env environment under which the function is invoked
|
|
81
79
|
* @param exports exports object
|
|
82
80
|
* @return main export
|