search for: stopstr

Displaying 1 result from an estimated 1 matches for "stopstr".

Did you mean: stops
2016 Dec 20
2
Very small numbers in hexadecimal notation parsed as zero
...e-308, as expected I wrote a small program (in a file called "strtod.c") to compare the R stdtod implementation to a C implementation. The C implementation never reported 0 in the examples given above: #include <stdlib.h> #include <stdio.h> int main(void) { char *string, *stopstring; double x; string = "0x1.00000000d0000p-987"; x = strtod(string, &stopstring); printf("string = \"%s\"\n", string); printf("strtod = %.17g\n\n", x); string = "0x1.00000000dp-987"; x = strtod(string, &stopstring);...