Methods
(static) GetNumberParts(x) → {Object}
Returns mantissa, exponent from a float
Parameters:
Name | Type | Description |
---|---|---|
x |
Float |
Returns:
mantissa, exponent
- Type
- Object
(inner) bs(haystack, needle, comparator, alow, ahigh) → {Number}
binary search function to find an index in an array
Parameters:
Name | Type | Description |
---|---|---|
haystack |
Array | |
needle |
Object | Number | key being searched for |
comparator |
function | |
alow |
Number | low guess (index) where the needle is |
ahigh |
Number | high guess (index) where the needle is |
Returns:
index when found, otherwise ~low
- Type
- Number