parseDouble
parseDouble(x
: number): object
Defined in double-representation/parse-double.ts:16
Returns the relevant parts of the given IEEE-754 double. The returned exponent has been normalized (i.e. 1023 ha been subtracted) and the significand has the hidden bit added if appropriate. See https://github.com/bartaz/ieee754-visualization
Parameters:
Name | Type |
---|---|
x | number |
Returns: object
exponent: number
sign: number
significand: number[]
parseDoubleDetailed(x
: number): object
Defined in double-representation/parse-double.ts:51
Returns the relevant parts of the given IEEE-754 double. See https://github.com/bartaz/ieee754-visualization. This is a slower version of parseDouble that gives binary string representations of the components.
Parameters:
Name | Type |
---|---|
x | number |
Returns: object
exponent: string
full: string = sign + exponent + hidden + significand
hidden: string
sign: string
significand: string