@stdlib/math-base-special-trunc2 0.0.5 → 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 +47 -2
- package/package.json +1 -1
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
|
# trunc2
|
|
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 two toward zero.
|
|
26
26
|
|
|
@@ -113,6 +113,26 @@ 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/ceil2`][@stdlib/math/base/special/ceil2]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of two toward positive infinity.</span>
|
|
125
|
+
- <span class="package-name">[`@stdlib/math/base/special/floor2`][@stdlib/math/base/special/floor2]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of two toward negative infinity.</span>
|
|
126
|
+
- <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>
|
|
127
|
+
- <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>
|
|
128
|
+
- <span class="package-name">[`@stdlib/math/base/special/trunc10`][@stdlib/math/base/special/trunc10]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of 10 toward zero.</span>
|
|
129
|
+
|
|
130
|
+
</section>
|
|
131
|
+
|
|
132
|
+
<!-- /.related -->
|
|
133
|
+
|
|
134
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
135
|
+
|
|
116
136
|
|
|
117
137
|
<section class="main-repo" >
|
|
118
138
|
|
|
@@ -137,7 +157,7 @@ See [LICENSE][stdlib-license].
|
|
|
137
157
|
|
|
138
158
|
## Copyright
|
|
139
159
|
|
|
140
|
-
Copyright © 2016-
|
|
160
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
141
161
|
|
|
142
162
|
</section>
|
|
143
163
|
|
|
@@ -156,9 +176,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
156
176
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-trunc2/main.svg
|
|
157
177
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-trunc2?branch=main
|
|
158
178
|
|
|
179
|
+
<!--
|
|
180
|
+
|
|
159
181
|
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-base-special-trunc2.svg
|
|
160
182
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-base-special-trunc2/main
|
|
161
183
|
|
|
184
|
+
-->
|
|
185
|
+
|
|
186
|
+
[umd]: https://github.com/umdjs/umd
|
|
187
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
188
|
+
|
|
189
|
+
[deno-url]: https://github.com/stdlib-js/math-base-special-trunc2/tree/deno
|
|
190
|
+
[umd-url]: https://github.com/stdlib-js/math-base-special-trunc2/tree/umd
|
|
191
|
+
[esm-url]: https://github.com/stdlib-js/math-base-special-trunc2/tree/esm
|
|
192
|
+
|
|
162
193
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
163
194
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
164
195
|
|
|
@@ -168,6 +199,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
168
199
|
|
|
169
200
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math-base-special-trunc2/main/LICENSE
|
|
170
201
|
|
|
202
|
+
<!-- <related-links> -->
|
|
203
|
+
|
|
204
|
+
[@stdlib/math/base/special/ceil2]: https://www.npmjs.com/package/@stdlib/math-base-special-ceil2
|
|
205
|
+
|
|
206
|
+
[@stdlib/math/base/special/floor2]: https://www.npmjs.com/package/@stdlib/math-base-special-floor2
|
|
207
|
+
|
|
208
|
+
[@stdlib/math/base/special/round2]: https://www.npmjs.com/package/@stdlib/math-base-special-round2
|
|
209
|
+
|
|
210
|
+
[@stdlib/math/base/special/trunc]: https://www.npmjs.com/package/@stdlib/math-base-special-trunc
|
|
211
|
+
|
|
212
|
+
[@stdlib/math/base/special/trunc10]: https://www.npmjs.com/package/@stdlib/math-base-special-trunc10
|
|
213
|
+
|
|
214
|
+
<!-- </related-links> -->
|
|
215
|
+
|
|
171
216
|
</section>
|
|
172
217
|
|
|
173
218
|
<!-- /.links -->
|