Logo Search packages:      
Sourcecode: ygraph version File versions  Download package

gdouble str_to_double ( gchar *  s  ) 

Convert a string to a double, noting that fortran output often will use 'd' or 'D' rather than 'e' to denote the exponent.

s The string to be converted.
A double corresponding to the string.

Definition at line 65 of file util.c.

Referenced by cmd_line_process(), dataset_read_from_file(), and point_read().

  guint i;
  for (i=0; i<strlen(s); ++i)
    if (s[i]=='d') s[i] = 'e';
  return(g_strtod(s, NULL));

Generated by  Doxygen 1.6.0   Back to index