benilla-re systems structs docs

_strtod

function · crt · primitive

Address
0x741e39 · 170 bytes, up to 0x741ee2
Signature
double __cdecl (const char *s, char **end)
Meaning
Reads a decimal numeral as a double: +0 below the normal range, a signed zero past the 12-byte range
Confidence
verified, proof one
Name from
the community database (idb)
Finding
crt/strtod#strtod
Test
crt::crt_strtod_difftest

Finding: strtod in crt: reading numbers

strtod(s, &end) skips blanks, 9 to 13 and space, and reads on with __fltin2. No digit answers +0. An overflow, the scan's exponent above 5200 or the rounding's infinity, answers the infinity of the sign of the first byte after the blanks and sets errno to 34 (ERANGE). An underflow, the scan's exponent below -5200 or a result rounding below 2^-1022 (__ld12cvt's 2), answers +0 for either sign with ERANGE. A scale ___ld12mul flushes to zero, from about 1e-4951 to the -5200 bound, leaves a zero real with the numeral's sign, answered as that zero, errno untouched: -1e-5000 is -0. Otherwise it answers the rounded double: 6e23 reads as the double below the nearest.

The derivation is in the doc.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.