NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Tuesday June 22, 2004
04:16 AM
C99 is not C
While it's on my mind... what's the output from the following C program?
#include <stdio.h>
#include <stdlib.h>
int main() {
const char *foo = "0x3";
printf("'%s' is %g\n", foo, atof(foo));
return 0;
}
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Intriguing (Score:2)
I guess you expected either scientific notation or 6 digits?
But how do you specify what notation should be used? - I can get the proper notation by explicitly specifying
%Eor%Fjonasbn