Converts a value to Uint24.
npm install to-uint-24-x href="https://travis-ci.org/Xotic750/to-uint-24-x"
title="Travis status"> src="https://travis-ci.org/Xotic750/to-uint-24-x.svg?branch=master"
alt="Travis status" height="18">
href="https://david-dm.org/Xotic750/to-uint-24-x"
title="Dependency status"> alt="Dependency status" height="18"/>
href="https://david-dm.org/Xotic750/to-uint-24-x?type=dev"
title="devDependency status"> alt="devDependency status" height="18"/>
href="https://badge.fury.io/js/to-uint-24-x"
title="npm version"> alt="npm version" height="18">
href="https://www.jsdelivr.com/package/npm/to-uint-24-x"
title="jsDelivr hits"> alt="jsDelivr hits" height="18">
href="https://bettercodehub.com/results/Xotic750/to-uint-24-x"
title="bettercodehub score"> alt="bettercodehub score" height="18">
href="https://coveralls.io/github/Xotic750/to-uint-24-x?branch=master"
title="Coverage Status"> alt="Coverage Status" height="18">
Converts a value to Uint24.
The abstract operation ToUint24 converts argument to one of 2^24 integer
values in the range 0 through 2^24-1, inclusive.
Kind: Exported function
Returns: number - Integer value, 0 through 2^24-1, inclusive.
| Param | Type | Description |
| -------- | ------------------- | ------------------------------------------------ |
| argument | number | The argument to convert to one of 2^24 integers. |
Example
``js``
import toUint24 from 'to-uint-24-x';
console.log(toUint24(1)); // 1
console.log(toUint24(-1)); // 16777215 (2^24-1)