@stdlib/math-base-special-floor10 0.3.0 → 0.3.1

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.
Files changed (3) hide show
  1. package/NOTICE +1 -1
  2. package/README.md +12 -14
  3. package/package.json +10 -10
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2024 The Stdlib Authors.
1
+ Copyright (c) 2016-2026 The Stdlib Authors.
package/README.md CHANGED
@@ -121,18 +121,16 @@ v = floor10( NaN );
121
121
  <!-- eslint no-undef: "error" -->
122
122
 
123
123
  ```javascript
124
- var randu = require( '@stdlib/random-base-randu' );
124
+ var uniform = require( '@stdlib/random-array-uniform' );
125
+ var logEachMap = require( '@stdlib/console-log-each-map' );
125
126
  var floor10 = require( '@stdlib/math-base-special-floor10' );
126
127
 
127
- var x;
128
- var v;
129
- var i;
128
+ var opts = {
129
+ 'dtype': 'float64'
130
+ };
131
+ var x = uniform( 100, -50.0, 50.0, opts );
130
132
 
131
- for ( i = 0; i < 100; i++ ) {
132
- x = (randu()*100.0) - 50.0;
133
- v = floor10( x );
134
- console.log( 'Value: %d. Rounded: %d.', x, v );
135
- }
133
+ logEachMap( 'x: %0.4f. Rounded: %d.', x, floor10 );
136
134
  ```
137
135
 
138
136
  </section>
@@ -267,7 +265,7 @@ See [LICENSE][stdlib-license].
267
265
 
268
266
  ## Copyright
269
267
 
270
- Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
268
+ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
271
269
 
272
270
  </section>
273
271
 
@@ -280,8 +278,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
280
278
  [npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-floor10.svg
281
279
  [npm-url]: https://npmjs.org/package/@stdlib/math-base-special-floor10
282
280
 
283
- [test-image]: https://github.com/stdlib-js/math-base-special-floor10/actions/workflows/test.yml/badge.svg?branch=v0.3.0
284
- [test-url]: https://github.com/stdlib-js/math-base-special-floor10/actions/workflows/test.yml?query=branch:v0.3.0
281
+ [test-image]: https://github.com/stdlib-js/math-base-special-floor10/actions/workflows/test.yml/badge.svg?branch=v0.3.1
282
+ [test-url]: https://github.com/stdlib-js/math-base-special-floor10/actions/workflows/test.yml?query=branch:v0.3.1
285
283
 
286
284
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-floor10/main.svg
287
285
  [coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-floor10?branch=main
@@ -293,8 +291,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
293
291
 
294
292
  -->
295
293
 
296
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
297
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
294
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
295
+ [chat-url]: https://stdlib.zulipchat.com
298
296
 
299
297
  [stdlib]: https://github.com/stdlib-js/stdlib
300
298
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/math-base-special-floor10",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Round a numeric value to the nearest power of 10 toward negative infinity.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -33,17 +33,17 @@
33
33
  "url": "https://github.com/stdlib-js/stdlib/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@stdlib/constants-float64-max-base10-exponent": "^0.2.2",
36
+ "@stdlib/constants-float64-max-base10-exponent": "^0.2.3",
37
37
  "@stdlib/constants-float64-min-base10-exponent-subnormal": "^0.2.1",
38
- "@stdlib/constants-float64-ninf": "^0.2.2",
39
- "@stdlib/math-base-assert-is-infinite": "^0.2.2",
40
- "@stdlib/math-base-assert-is-nan": "^0.2.2",
41
- "@stdlib/math-base-napi-unary": "^0.2.3",
42
- "@stdlib/math-base-special-ceil": "^0.2.2",
43
- "@stdlib/math-base-special-floor": "^0.2.3",
44
- "@stdlib/math-base-special-log10": "^0.3.0",
38
+ "@stdlib/constants-float64-ninf": "^0.2.3",
39
+ "@stdlib/math-base-assert-is-infinite": "^0.2.3",
40
+ "@stdlib/math-base-assert-is-nan": "^0.2.3",
41
+ "@stdlib/math-base-napi-unary": "^0.2.7",
42
+ "@stdlib/math-base-special-ceil": "^0.2.3",
43
+ "@stdlib/math-base-special-floor": "^0.2.4",
44
+ "@stdlib/math-base-special-log10": "^0.3.1",
45
45
  "@stdlib/math-base-special-pow": "^0.3.0",
46
- "@stdlib/utils-library-manifest": "^0.2.2"
46
+ "@stdlib/utils-library-manifest": "^0.2.4"
47
47
  },
48
48
  "devDependencies": {},
49
49
  "engines": {