public static double strtod( byte[] s, int i ) { int len = s.Length; return ((len == 0) ? 0 : Double.Parse( newstring( s ) )); }