s_double4024000000000000
global · unassigned
- Address
0x80e5a0· 8 bytes, up to0x80e5a7- Type
const double- Meaning
- Holds the double 10 (0x4024000000000000)
- Confidence
- verified, proof two
- Finding
- storm/strings#float-value
Finding: Float value in storm: string conversions
The value is built at 53 bits; the steps hold while every one stays a normal double. Integer digits
gather in a 32-bit chunk, which at 0x19999999 folds into a double, acc = pow(10, n)·acc + chunk,
n its digit count, and restarts. The last chunk folds the same way, or is the value alone while
acc is 0. A fraction digit d at place k, from −1 down, adds table[−k − 1][d] while k > −21
and pow(10, k)·d past it. An exponent e makes the value pow(10, e)·value. pow is the C
runtime's 0x73f940; a value is a correctly rounded decimal only as far as its powers are.
The derivation is in the doc.