README.md (5226B)
1 <!-- 2 3 @license Apache-2.0 4 5 Copyright (c) 2021 The Stdlib Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 19 --> 20 21 # Number 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] 24 25 > Number namespace. 26 27 <section class="installation"> 28 29 ## Installation 30 31 ```bash 32 npm install @stdlib/number 33 ``` 34 35 </section> 36 37 <section class="usage"> 38 39 ## Usage 40 41 ```javascript 42 var ns = require( '@stdlib/number' ); 43 ``` 44 45 #### ns 46 47 Number namespace. 48 49 ```javascript 50 var o = ns; 51 // returns {...} 52 ``` 53 54 The namespace contains the following: 55 56 <!-- <toc pattern="*"> --> 57 58 <div class="namespace-toc"> 59 60 - <span class="signature">[`Number( value )`][@stdlib/number/ctor]</span><span class="delimiter">: </span><span class="description">constructor which wraps a numeric value in an object.</span> 61 - <span class="signature">[`float32`][@stdlib/number/float32]</span><span class="delimiter">: </span><span class="description">utilities for single-precision floating-point numbers.</span> 62 - <span class="signature">[`float64`][@stdlib/number/float64]</span><span class="delimiter">: </span><span class="description">utilities for double-precision floating-point numbers.</span> 63 - <span class="signature">[`int32`][@stdlib/number/int32]</span><span class="delimiter">: </span><span class="description">utilities for signed 32-bit integers.</span> 64 - <span class="signature">[`uint16`][@stdlib/number/uint16]</span><span class="delimiter">: </span><span class="description">utilities for unsigned 16-bit integers.</span> 65 - <span class="signature">[`uint32`][@stdlib/number/uint32]</span><span class="delimiter">: </span><span class="description">utilities for unsigned 32-bit integers.</span> 66 - <span class="signature">[`uint8`][@stdlib/number/uint8]</span><span class="delimiter">: </span><span class="description">utilities for unsigned 8-bit integers.</span> 67 68 </div> 69 70 <!-- </toc> --> 71 72 </section> 73 74 <!-- /.usage --> 75 76 <section class="examples"> 77 78 ## Examples 79 80 <!-- TODO: better examples --> 81 82 <!-- eslint no-undef: "error" --> 83 84 ```javascript 85 var objectKeys = require( '@stdlib/utils/keys' ); 86 var ns = require( '@stdlib/number' ); 87 88 console.log( objectKeys( ns ) ); 89 ``` 90 91 </section> 92 93 <!-- /.examples --> 94 95 96 <section class="main-repo" > 97 98 * * * 99 100 ## Notice 101 102 This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. 103 104 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]. 105 106 #### Community 107 108 [![Chat][chat-image]][chat-url] 109 110 --- 111 112 ## License 113 114 See [LICENSE][stdlib-license]. 115 116 117 ## Copyright 118 119 Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors]. 120 121 </section> 122 123 <!-- /.stdlib --> 124 125 <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. --> 126 127 <section class="links"> 128 129 [npm-image]: http://img.shields.io/npm/v/@stdlib/number.svg 130 [npm-url]: https://npmjs.org/package/@stdlib/number 131 132 [test-image]: https://github.com/stdlib-js/number/actions/workflows/test.yml/badge.svg 133 [test-url]: https://github.com/stdlib-js/number/actions/workflows/test.yml 134 135 [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/number/main.svg 136 [coverage-url]: https://codecov.io/github/stdlib-js/number?branch=main 137 138 [dependencies-image]: https://img.shields.io/david/stdlib-js/number.svg 139 [dependencies-url]: https://david-dm.org/stdlib-js/number/main 140 141 [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg 142 [chat-url]: https://gitter.im/stdlib-js/stdlib/ 143 144 [stdlib]: https://github.com/stdlib-js/stdlib 145 146 [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors 147 148 [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/number/main/LICENSE 149 150 <!-- <toc-links> --> 151 152 [@stdlib/number/ctor]: https://www.npmjs.com/package/@stdlib/number/tree/main/ctor 153 154 [@stdlib/number/float32]: https://www.npmjs.com/package/@stdlib/number/tree/main/float32 155 156 [@stdlib/number/float64]: https://www.npmjs.com/package/@stdlib/number/tree/main/float64 157 158 [@stdlib/number/int32]: https://www.npmjs.com/package/@stdlib/number/tree/main/int32 159 160 [@stdlib/number/uint16]: https://www.npmjs.com/package/@stdlib/number/tree/main/uint16 161 162 [@stdlib/number/uint32]: https://www.npmjs.com/package/@stdlib/number/tree/main/uint32 163 164 [@stdlib/number/uint8]: https://www.npmjs.com/package/@stdlib/number/tree/main/uint8 165 166 <!-- </toc-links> --> 167 168 </section> 169 170 <!-- /.links -->