s_softFloatHundredth
global · cmath
- Address
0xcf0b0c· 4 bytes, up to0xcf0b0f- Type
float- Meaning
- Holds 0x3c23d70a, 0.01, set by 0x7626e0; the software modifier applier reads it
- Confidence
- verified, proof one
- Finding
- spell/records#modifier-appliers
Finding: Modifier appliers in spell: records
Three appliers take (spell, &value, op) and change the value only when 0x6e6b30 returns 1.
The integer one sets value = (value + flat)·pct / 100, 32-bit wrapping, the division signed and
truncating. The float one sets value = (float)(((double)flat + value)·pct·0.01f): each step at
53-bit precision in that order, 0.01f being 0x3c23d70a, one rounding to single at the store.
The software one sets value = ((value ⊕ F(flat)) ⊗ F(pct)) ⊗ 0.01f in the arithmetic of
Software floats, where F is its int-to-float.
The derivation is in the doc.