// Wrapper around strconv.Atof64. Handles dddddp+ddd (binary exponent)
// itself, passes the rest on to strconv.Atof64.
func myatof64(s string) (f float64, ok bool) {
- a := strings.split(s, "p");
+ a := strings.Split(s, "p");
if len(a) == 2 {
n, err := strconv.Atoi64(a[0]);
if err != nil {
// Wrapper around strconv.Atof32. Handles dddddp+ddd (binary exponent)
// itself, passes the rest on to strconv.Atof32.
func myatof32(s string) (f float32, ok bool) {
- a := strings.split(s, "p");
+ a := strings.Split(s, "p");
if len(a) == 2 {
n, err := strconv.Atoi(a[0]);
if err != nil {
if len(line) == 0 || line[0] == '#' {
continue
}
- a := strings.split(line, " ");
+ a := strings.Split(line, " ");
if len(a) != 4 {
t.Error("testfp.txt:", lineno, ": wrong field count\n");
continue;