@stdlib/math-base-special-trunc10 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 +7 -7
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 = trunc10( 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 trunc10 = require( '@stdlib/math-base-special-trunc10' );
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 = trunc10( x );
134
- console.log( 'Value: %d. Rounded: %d.', x, v );
135
- }
133
+ logEachMap( 'x: %0.4f. Rounded: %0.4f.', x, trunc10 );
136
134
  ```
137
135
 
138
136
  </section>
@@ -268,7 +266,7 @@ See [LICENSE][stdlib-license].
268
266
 
269
267
  ## Copyright
270
268
 
271
- Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
269
+ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
272
270
 
273
271
  </section>
274
272
 
@@ -281,8 +279,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
281
279
  [npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-trunc10.svg
282
280
  [npm-url]: https://npmjs.org/package/@stdlib/math-base-special-trunc10
283
281
 
284
- [test-image]: https://github.com/stdlib-js/math-base-special-trunc10/actions/workflows/test.yml/badge.svg?branch=v0.3.0
285
- [test-url]: https://github.com/stdlib-js/math-base-special-trunc10/actions/workflows/test.yml?query=branch:v0.3.0
282
+ [test-image]: https://github.com/stdlib-js/math-base-special-trunc10/actions/workflows/test.yml/badge.svg?branch=v0.3.1
283
+ [test-url]: https://github.com/stdlib-js/math-base-special-trunc10/actions/workflows/test.yml?query=branch:v0.3.1
286
284
 
287
285
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-trunc10/main.svg
288
286
  [coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-trunc10?branch=main
@@ -294,8 +292,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
294
292
 
295
293
  -->
296
294
 
297
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
298
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
295
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
296
+ [chat-url]: https://stdlib.zulipchat.com
299
297
 
300
298
  [stdlib]: https://github.com/stdlib-js/stdlib
301
299
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/math-base-special-trunc10",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Round a numeric value to the nearest power of 10 toward zero.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -33,13 +33,13 @@
33
33
  "url": "https://github.com/stdlib-js/stdlib/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@stdlib/math-base-assert-is-infinite": "^0.2.2",
37
- "@stdlib/math-base-assert-is-nan": "^0.2.2",
38
- "@stdlib/math-base-napi-unary": "^0.2.3",
39
- "@stdlib/math-base-special-floor": "^0.2.3",
40
- "@stdlib/math-base-special-log10": "^0.3.0",
36
+ "@stdlib/math-base-assert-is-infinite": "^0.2.3",
37
+ "@stdlib/math-base-assert-is-nan": "^0.2.3",
38
+ "@stdlib/math-base-napi-unary": "^0.2.7",
39
+ "@stdlib/math-base-special-floor": "^0.2.4",
40
+ "@stdlib/math-base-special-log10": "^0.3.1",
41
41
  "@stdlib/math-base-special-pow": "^0.3.0",
42
- "@stdlib/utils-library-manifest": "^0.2.2"
42
+ "@stdlib/utils-library-manifest": "^0.2.4"
43
43
  },
44
44
  "devDependencies": {},
45
45
  "engines": {