@stdlib/number-float32-base-exponent 0.1.1 → 0.2.0
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/NOTICE +1 -1
- package/README.md +18 -3
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +3 -3
- package/package.json +12 -11
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -206,6 +206,12 @@ int main( void ) {
|
|
|
206
206
|
|
|
207
207
|
<section class="related">
|
|
208
208
|
|
|
209
|
+
* * *
|
|
210
|
+
|
|
211
|
+
## See Also
|
|
212
|
+
|
|
213
|
+
- <span class="package-name">[`@stdlib/number-float64/base/exponent`][@stdlib/number/float64/base/exponent]</span><span class="delimiter">: </span><span class="description">return an integer corresponding to the unbiased exponent of a double-precision floating-point number.</span>
|
|
214
|
+
|
|
209
215
|
</section>
|
|
210
216
|
|
|
211
217
|
<!-- /.related -->
|
|
@@ -236,7 +242,7 @@ See [LICENSE][stdlib-license].
|
|
|
236
242
|
|
|
237
243
|
## Copyright
|
|
238
244
|
|
|
239
|
-
Copyright © 2016-
|
|
245
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
240
246
|
|
|
241
247
|
</section>
|
|
242
248
|
|
|
@@ -249,8 +255,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
249
255
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/number-float32-base-exponent.svg
|
|
250
256
|
[npm-url]: https://npmjs.org/package/@stdlib/number-float32-base-exponent
|
|
251
257
|
|
|
252
|
-
[test-image]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
253
|
-
[test-url]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml?query=branch:v0.
|
|
258
|
+
[test-image]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
259
|
+
[test-url]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml?query=branch:v0.2.0
|
|
254
260
|
|
|
255
261
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/number-float32-base-exponent/main.svg
|
|
256
262
|
[coverage-url]: https://codecov.io/github/stdlib-js/number-float32-base-exponent?branch=main
|
|
@@ -273,14 +279,23 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
273
279
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
274
280
|
|
|
275
281
|
[deno-url]: https://github.com/stdlib-js/number-float32-base-exponent/tree/deno
|
|
282
|
+
[deno-readme]: https://github.com/stdlib-js/number-float32-base-exponent/blob/deno/README.md
|
|
276
283
|
[umd-url]: https://github.com/stdlib-js/number-float32-base-exponent/tree/umd
|
|
284
|
+
[umd-readme]: https://github.com/stdlib-js/number-float32-base-exponent/blob/umd/README.md
|
|
277
285
|
[esm-url]: https://github.com/stdlib-js/number-float32-base-exponent/tree/esm
|
|
286
|
+
[esm-readme]: https://github.com/stdlib-js/number-float32-base-exponent/blob/esm/README.md
|
|
278
287
|
[branches-url]: https://github.com/stdlib-js/number-float32-base-exponent/blob/main/branches.md
|
|
279
288
|
|
|
280
289
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/number-float32-base-exponent/main/LICENSE
|
|
281
290
|
|
|
282
291
|
[ieee754]: https://en.wikipedia.org/wiki/IEEE_754-1985
|
|
283
292
|
|
|
293
|
+
<!-- <related-links> -->
|
|
294
|
+
|
|
295
|
+
[@stdlib/number/float64/base/exponent]: https://www.npmjs.com/package/@stdlib/number-float64-base-exponent
|
|
296
|
+
|
|
297
|
+
<!-- </related-links> -->
|
|
298
|
+
|
|
284
299
|
</section>
|
|
285
300
|
|
|
286
301
|
<!-- /.links -->
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
* @returns unbiased exponent
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* var toFloat32 = require(
|
|
28
|
+
* var toFloat32 = require( '@stdlib/number-float64-base-to-float32' );
|
|
29
29
|
* var exp = exponentf( toFloat32( 3.14e34 ) ); // => 2**114 ~ 2.08e34
|
|
30
30
|
* // returns 114
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* var toFloat32 = require(
|
|
33
|
+
* var toFloat32 = require( '@stdlib/number-float64-base-to-float32' );
|
|
34
34
|
* var exp = exponentf( toFloat32( 3.14e-34 ) ); // => 2**-112 ~ 1.93e-34
|
|
35
35
|
* // returns -112
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* var toFloat32 = require(
|
|
38
|
+
* var toFloat32 = require( '@stdlib/number-float64-base-to-float32' );
|
|
39
39
|
* var exp = exponentf( toFloat32( -3.14 ) );
|
|
40
40
|
* // returns 1
|
|
41
41
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/number-float32-base-exponent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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": {
|
|
@@ -39,25 +39,26 @@
|
|
|
39
39
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@stdlib/constants-float32-exponent-bias": "^0.
|
|
43
|
-
"@stdlib/constants-float32-exponent-mask": "^0.
|
|
44
|
-
"@stdlib/number-float32-base-to-word": "^0.
|
|
45
|
-
"@stdlib/utils-library-manifest": "^0.
|
|
42
|
+
"@stdlib/constants-float32-exponent-bias": "^0.2.0",
|
|
43
|
+
"@stdlib/constants-float32-exponent-mask": "^0.2.0",
|
|
44
|
+
"@stdlib/number-float32-base-to-word": "^0.2.0",
|
|
45
|
+
"@stdlib/utils-library-manifest": "^0.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@stdlib/
|
|
49
|
-
"@stdlib/constants-float32-
|
|
50
|
-
"@stdlib/constants-float32-pinf": "^0.1.0",
|
|
48
|
+
"@stdlib/constants-float32-ninf": "^0.1.1",
|
|
49
|
+
"@stdlib/constants-float32-pinf": "^0.1.1",
|
|
51
50
|
"@stdlib/math-base-assert-is-nan": "^0.1.1",
|
|
52
51
|
"@stdlib/math-base-special-pow": "^0.1.0",
|
|
53
52
|
"@stdlib/math-base-special-round": "^0.1.1",
|
|
54
|
-
"@stdlib/number-float32-base-to-binary-string": "^0.1.
|
|
53
|
+
"@stdlib/number-float32-base-to-binary-string": "^0.1.1",
|
|
55
54
|
"@stdlib/number-float64-base-to-float32": "^0.1.1",
|
|
56
55
|
"@stdlib/random-base-randu": "^0.1.0",
|
|
57
|
-
"@stdlib/utils-try-require": "^0.
|
|
56
|
+
"@stdlib/utils-try-require": "^0.2.0",
|
|
58
57
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
59
58
|
"istanbul": "^0.4.1",
|
|
60
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
59
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
60
|
+
"@stdlib/bench-harness": "^0.1.2",
|
|
61
|
+
"@stdlib/bench": "^0.3.1"
|
|
61
62
|
},
|
|
62
63
|
"engines": {
|
|
63
64
|
"node": ">=0.10.0",
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|