__fltout2
function · crt · orchestration
- Address
0x40ff70· 92 bytes, up to0x40ffcb- Signature
_strflt * __cdecl (double value, _strflt *flt, char *buffer)- Meaning
- Fills a _strflt with a double's sign, decimal exponent and up to 17 digits from I10_OUTPUT
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- crt/decimal#the-digits-a-conversion-reads
- Test
crt::crt_sprintf_float_difftest
Finding: The digits a conversion reads in crt: decimal digits
_fltout2(value, flt, buf) asks I10_OUTPUT for 17 digits with no flags of the double's 80-bit
real, copies the digits into buf, and fills the _strflt at flt: the sign as - or a space,
the decimal exponent (the value is 0.d1d2... * 10^decpt), the return of I10_OUTPUT, and buf.
So -0 is 0 with sign space, and a NaN's sign is kept. A signalling NaN never reaches it as
one: _cftoe, _cftof and _cftog copy the double with fld and fstp, and the x87 quiets a
signalling NaN on the load, so 1#SNAN is never printed for a double.
The derivation is in the doc.
Callers 3
Callees 2
- ___dtold crt
- I10_OUTPUT crt
Calls and jumps by a bare address, from tables/calls.tsv.