@stdlib/number-uint32-base
v0.2.2
Published
Base utilities for unsigned 32-bit integers.
Downloads
17
Readme
Uint32
Base utilities for unsigned 32-bit integers.
Installation
npm install @stdlib/number-uint32-base
Usage
var ns = require( '@stdlib/number-uint32-base' );
ns
Base utilities for unsigned 32-bit integers.
var o = ns;
// returns {...}
fromBinaryStringUint32( bstr )
: create an unsigned 32-bit integer from a literal bit representation.rotl32( x, shift )
: bitwise rotation to the left.rotr32( x, shift )
: bitwise rotation to the right.toBinaryStringUint32( x )
: return a string giving the literal bit representation of an unsigned 32-bit integer.uint32ToInt32( x )
: convert an unsigned 32-bit integer to a signed 32-bit integer.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var ns = require( '@stdlib/number-uint32-base' );
console.log( objectKeys( ns ) );
Notice
This package is part of 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.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.