time-to-botec/js/node_modules/@stdlib/number/uint16/base/README.md

89 lines
2.1 KiB
Markdown
Raw Normal View History

<!--
@license Apache-2.0
Copyright (c) 2018 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# Uint16
> Base utilities for unsigned 16-bit integers.
<section class="usage">
## Usage
```javascript
var ns = require( '@stdlib/number/uint16/base' );
```
#### ns
Base utilities for unsigned 16-bit integers.
```javascript
var o = ns;
// returns {...}
```
<!-- <toc pattern="*"> -->
<div class="namespace-toc">
- <span class="signature">[`fromBinaryStringUint16( bstr )`][@stdlib/number/uint16/base/from-binary-string]</span><span class="delimiter">: </span><span class="description">create an unsigned 16-bit integer from a literal bit representation.</span>
- <span class="signature">[`toBinaryStringUint16( x )`][@stdlib/number/uint16/base/to-binary-string]</span><span class="delimiter">: </span><span class="description">return a string giving the literal bit representation of an unsigned 16-bit integer.</span>
</div>
<!-- </toc> -->
</section>
<!-- /.usage -->
<section class="examples">
## Examples
<!-- TODO: better examples -->
<!-- eslint no-undef: "error" -->
```javascript
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/number/uint16/base' );
console.log( objectKeys( ns ) );
```
</section>
<!-- /.examples -->
<section class="links">
<!-- <toc-links> -->
[@stdlib/number/uint16/base/from-binary-string]: https://www.npmjs.com/package/@stdlib/number/tree/main/uint16/base/from-binary-string
[@stdlib/number/uint16/base/to-binary-string]: https://www.npmjs.com/package/@stdlib/number/tree/main/uint16/base/to-binary-string
<!-- </toc-links> -->
</section>
<!-- /.links -->