@stdlib/math-base-special-round10 0.0.2 → 0.0.6
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 +52 -3
- package/package.json +2 -2
- package/CHANGELOG.md +0 -5
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# round10
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
25
|
> Round a numeric value to the nearest power of 10 on a linear scale.
|
|
26
26
|
|
|
@@ -113,6 +113,25 @@ for ( i = 0; i < 100; i++ ) {
|
|
|
113
113
|
|
|
114
114
|
<!-- /.examples -->
|
|
115
115
|
|
|
116
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
117
|
+
|
|
118
|
+
<section class="related">
|
|
119
|
+
|
|
120
|
+
* * *
|
|
121
|
+
|
|
122
|
+
## See Also
|
|
123
|
+
|
|
124
|
+
- <span class="package-name">[`@stdlib/math/base/special/ceil10`][@stdlib/math/base/special/ceil10]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of 10 toward positive infinity.</span>
|
|
125
|
+
- <span class="package-name">[`@stdlib/math/base/special/floor10`][@stdlib/math/base/special/floor10]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of 10 toward negative infinity.</span>
|
|
126
|
+
- <span class="package-name">[`@stdlib/math/base/special/round`][@stdlib/math/base/special/round]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest integer.</span>
|
|
127
|
+
- <span class="package-name">[`@stdlib/math/base/special/round2`][@stdlib/math/base/special/round2]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of two on a linear scale.</span>
|
|
128
|
+
|
|
129
|
+
</section>
|
|
130
|
+
|
|
131
|
+
<!-- /.related -->
|
|
132
|
+
|
|
133
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
134
|
+
|
|
116
135
|
|
|
117
136
|
<section class="main-repo" >
|
|
118
137
|
|
|
@@ -124,6 +143,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
|
|
|
124
143
|
|
|
125
144
|
For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
|
|
126
145
|
|
|
146
|
+
#### Community
|
|
147
|
+
|
|
148
|
+
[![Chat][chat-image]][chat-url]
|
|
149
|
+
|
|
127
150
|
---
|
|
128
151
|
|
|
129
152
|
## License
|
|
@@ -133,7 +156,7 @@ See [LICENSE][stdlib-license].
|
|
|
133
156
|
|
|
134
157
|
## Copyright
|
|
135
158
|
|
|
136
|
-
Copyright © 2016-
|
|
159
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
137
160
|
|
|
138
161
|
</section>
|
|
139
162
|
|
|
@@ -152,15 +175,41 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
152
175
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-round10/main.svg
|
|
153
176
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-round10?branch=main
|
|
154
177
|
|
|
155
|
-
|
|
178
|
+
<!--
|
|
179
|
+
|
|
180
|
+
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-base-special-round10.svg
|
|
156
181
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-base-special-round10/main
|
|
157
182
|
|
|
183
|
+
-->
|
|
184
|
+
|
|
185
|
+
[umd]: https://github.com/umdjs/umd
|
|
186
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
187
|
+
|
|
188
|
+
[deno-url]: https://github.com/stdlib-js/math-base-special-round10/tree/deno
|
|
189
|
+
[umd-url]: https://github.com/stdlib-js/math-base-special-round10/tree/umd
|
|
190
|
+
[esm-url]: https://github.com/stdlib-js/math-base-special-round10/tree/esm
|
|
191
|
+
|
|
192
|
+
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
193
|
+
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
194
|
+
|
|
158
195
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
159
196
|
|
|
160
197
|
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
161
198
|
|
|
162
199
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math-base-special-round10/main/LICENSE
|
|
163
200
|
|
|
201
|
+
<!-- <related-links> -->
|
|
202
|
+
|
|
203
|
+
[@stdlib/math/base/special/ceil10]: https://www.npmjs.com/package/@stdlib/math-base-special-ceil10
|
|
204
|
+
|
|
205
|
+
[@stdlib/math/base/special/floor10]: https://www.npmjs.com/package/@stdlib/math-base-special-floor10
|
|
206
|
+
|
|
207
|
+
[@stdlib/math/base/special/round]: https://www.npmjs.com/package/@stdlib/math-base-special-round
|
|
208
|
+
|
|
209
|
+
[@stdlib/math/base/special/round2]: https://www.npmjs.com/package/@stdlib/math-base-special-round2
|
|
210
|
+
|
|
211
|
+
<!-- </related-links> -->
|
|
212
|
+
|
|
164
213
|
</section>
|
|
165
214
|
|
|
166
215
|
<!-- /.links -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-base-special-round10",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Round a numeric value to the nearest power of 10 on a linear scale.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"examples": "make examples",
|
|
29
29
|
"benchmark": "make benchmark"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://stdlib.io",
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git://github.com/stdlib-js/math-base-special-round10.git"
|