@stdlib/math-base-special-ceil10 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.
- package/NOTICE +1 -1
- package/README.md +12 -14
- package/package.json +10 -10
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -121,18 +121,16 @@ v = ceil10( NaN );
|
|
|
121
121
|
<!-- eslint no-undef: "error" -->
|
|
122
122
|
|
|
123
123
|
```javascript
|
|
124
|
-
var
|
|
124
|
+
var uniform = require( '@stdlib/random-array-uniform' );
|
|
125
|
+
var logEachMap = require( '@stdlib/console-log-each-map' );
|
|
125
126
|
var ceil10 = require( '@stdlib/math-base-special-ceil10' );
|
|
126
127
|
|
|
127
|
-
var
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
var opts = {
|
|
129
|
+
'dtype': 'float64'
|
|
130
|
+
};
|
|
131
|
+
var x = uniform( 100, -50.0, 50.0, opts );
|
|
130
132
|
|
|
131
|
-
|
|
132
|
-
x = (randu()*100.0) - 50.0;
|
|
133
|
-
v = ceil10( x );
|
|
134
|
-
console.log( 'Value: %d. Rounded: %d.', x, v );
|
|
135
|
-
}
|
|
133
|
+
logEachMap( 'x: %0.4f. Rounded: %0.4f.', x, ceil10 );
|
|
136
134
|
```
|
|
137
135
|
|
|
138
136
|
</section>
|
|
@@ -267,7 +265,7 @@ See [LICENSE][stdlib-license].
|
|
|
267
265
|
|
|
268
266
|
## Copyright
|
|
269
267
|
|
|
270
|
-
Copyright © 2016-
|
|
268
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
271
269
|
|
|
272
270
|
</section>
|
|
273
271
|
|
|
@@ -280,8 +278,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
280
278
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-ceil10.svg
|
|
281
279
|
[npm-url]: https://npmjs.org/package/@stdlib/math-base-special-ceil10
|
|
282
280
|
|
|
283
|
-
[test-image]: https://github.com/stdlib-js/math-base-special-ceil10/actions/workflows/test.yml/badge.svg?branch=v0.3.
|
|
284
|
-
[test-url]: https://github.com/stdlib-js/math-base-special-ceil10/actions/workflows/test.yml?query=branch:v0.3.
|
|
281
|
+
[test-image]: https://github.com/stdlib-js/math-base-special-ceil10/actions/workflows/test.yml/badge.svg?branch=v0.3.1
|
|
282
|
+
[test-url]: https://github.com/stdlib-js/math-base-special-ceil10/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-ceil10/main.svg
|
|
287
285
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-ceil10?branch=main
|
|
@@ -293,8 +291,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
293
291
|
|
|
294
292
|
-->
|
|
295
293
|
|
|
296
|
-
[chat-image]: https://img.shields.io/
|
|
297
|
-
[chat-url]: https://
|
|
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-ceil10",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Round a numeric value to the nearest power of 10 toward positive 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.
|
|
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-pinf": "^0.2.
|
|
39
|
-
"@stdlib/math-base-assert-is-infinite": "^0.2.
|
|
40
|
-
"@stdlib/math-base-assert-is-nan": "^0.2.
|
|
41
|
-
"@stdlib/math-base-napi-unary": "^0.2.
|
|
42
|
-
"@stdlib/math-base-special-ceil": "^0.2.
|
|
43
|
-
"@stdlib/math-base-special-floor": "^0.2.
|
|
44
|
-
"@stdlib/math-base-special-log10": "^0.3.
|
|
38
|
+
"@stdlib/constants-float64-pinf": "^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.
|
|
46
|
+
"@stdlib/utils-library-manifest": "^0.2.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {},
|
|
49
49
|
"engines": {
|