4.1.2 • Published 5 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
5 years ago
4.1.1
5 years ago
4.1.0
5 years ago
4.0.17
5 years ago
4.0.16
5 years ago
4.0.15
5 years ago
4.0.14
5 years ago
4.0.13
5 years ago
4.0.12
5 years ago
4.0.11
5 years ago
4.0.10
5 years ago
4.0.9
5 years ago
4.0.8
5 years ago
4.0.7
5 years ago
4.0.6
5 years ago
4.0.5
5 years ago
4.0.4
5 years ago
4.0.3
5 years ago
4.0.2
5 years ago
4.0.1
5 years ago
4.0.0
5 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.1.0
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago