4.1.2 • Published 6 years ago
to-uint-24-x v4.1.2
to-uint-24-x
Converts a value to Uint24.
module.exports(argument)
⇒ number ⏏
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
import toUint24 from 'to-uint-24-x';
console.log(toUint24(1)); // 1
console.log(toUint24(-1)); // 16777215 (2^24-1)
4.1.2
6 years ago
4.1.1
6 years ago
4.1.0
6 years ago
4.0.17
6 years ago
4.0.16
6 years ago
4.0.15
6 years ago
4.0.14
6 years ago
4.0.13
6 years ago
4.0.12
6 years ago
4.0.11
6 years ago
4.0.10
6 years ago
4.0.9
6 years ago
4.0.8
6 years ago
4.0.7
6 years ago
4.0.6
6 years ago
4.0.5
6 years ago
4.0.4
6 years ago
4.0.3
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago