1 2 3 4 5 6 7 8
#include <stdio.h> #include <stdlib.h> int main (int argc, char ** argv) { if (argc != 1+1) return 1; printf("%Lf\n", strtold(argv[1], NULL)); return 0; }