@stdlib/math-base-special-trunc10 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 +55 -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
|
# trunc10
|
|
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 toward zero.
|
|
26
26
|
|
|
@@ -128,6 +128,26 @@ for ( i = 0; i < 100; i++ ) {
|
|
|
128
128
|
|
|
129
129
|
<!-- /.examples -->
|
|
130
130
|
|
|
131
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
132
|
+
|
|
133
|
+
<section class="related">
|
|
134
|
+
|
|
135
|
+
* * *
|
|
136
|
+
|
|
137
|
+
## See Also
|
|
138
|
+
|
|
139
|
+
- <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>
|
|
140
|
+
- <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>
|
|
141
|
+
- <span class="package-name">[`@stdlib/math/base/special/round10`][@stdlib/math/base/special/round10]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of 10 on a linear scale.</span>
|
|
142
|
+
- <span class="package-name">[`@stdlib/math/base/special/trunc`][@stdlib/math/base/special/trunc]</span><span class="delimiter">: </span><span class="description">round a double-precision floating-point number toward zero.</span>
|
|
143
|
+
- <span class="package-name">[`@stdlib/math/base/special/trunc2`][@stdlib/math/base/special/trunc2]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of two toward zero.</span>
|
|
144
|
+
|
|
145
|
+
</section>
|
|
146
|
+
|
|
147
|
+
<!-- /.related -->
|
|
148
|
+
|
|
149
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
150
|
+
|
|
131
151
|
|
|
132
152
|
<section class="main-repo" >
|
|
133
153
|
|
|
@@ -139,6 +159,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
|
|
|
139
159
|
|
|
140
160
|
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].
|
|
141
161
|
|
|
162
|
+
#### Community
|
|
163
|
+
|
|
164
|
+
[![Chat][chat-image]][chat-url]
|
|
165
|
+
|
|
142
166
|
---
|
|
143
167
|
|
|
144
168
|
## License
|
|
@@ -148,7 +172,7 @@ See [LICENSE][stdlib-license].
|
|
|
148
172
|
|
|
149
173
|
## Copyright
|
|
150
174
|
|
|
151
|
-
Copyright © 2016-
|
|
175
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
152
176
|
|
|
153
177
|
</section>
|
|
154
178
|
|
|
@@ -167,15 +191,43 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
167
191
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-trunc10/main.svg
|
|
168
192
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-trunc10?branch=main
|
|
169
193
|
|
|
170
|
-
|
|
194
|
+
<!--
|
|
195
|
+
|
|
196
|
+
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-base-special-trunc10.svg
|
|
171
197
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-base-special-trunc10/main
|
|
172
198
|
|
|
199
|
+
-->
|
|
200
|
+
|
|
201
|
+
[umd]: https://github.com/umdjs/umd
|
|
202
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
203
|
+
|
|
204
|
+
[deno-url]: https://github.com/stdlib-js/math-base-special-trunc10/tree/deno
|
|
205
|
+
[umd-url]: https://github.com/stdlib-js/math-base-special-trunc10/tree/umd
|
|
206
|
+
[esm-url]: https://github.com/stdlib-js/math-base-special-trunc10/tree/esm
|
|
207
|
+
|
|
208
|
+
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
209
|
+
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
210
|
+
|
|
173
211
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
174
212
|
|
|
175
213
|
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
176
214
|
|
|
177
215
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math-base-special-trunc10/main/LICENSE
|
|
178
216
|
|
|
217
|
+
<!-- <related-links> -->
|
|
218
|
+
|
|
219
|
+
[@stdlib/math/base/special/ceil10]: https://www.npmjs.com/package/@stdlib/math-base-special-ceil10
|
|
220
|
+
|
|
221
|
+
[@stdlib/math/base/special/floor10]: https://www.npmjs.com/package/@stdlib/math-base-special-floor10
|
|
222
|
+
|
|
223
|
+
[@stdlib/math/base/special/round10]: https://www.npmjs.com/package/@stdlib/math-base-special-round10
|
|
224
|
+
|
|
225
|
+
[@stdlib/math/base/special/trunc]: https://www.npmjs.com/package/@stdlib/math-base-special-trunc
|
|
226
|
+
|
|
227
|
+
[@stdlib/math/base/special/trunc2]: https://www.npmjs.com/package/@stdlib/math-base-special-trunc2
|
|
228
|
+
|
|
229
|
+
<!-- </related-links> -->
|
|
230
|
+
|
|
179
231
|
</section>
|
|
180
232
|
|
|
181
233
|
<!-- /.links -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-base-special-trunc10",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Round a numeric value to the nearest power of 10 toward zero.",
|
|
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-trunc10.git"
|