- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for parseFloatPrefix (0.22 sec)
-
src/strconv/internal_test.go
d := new(decimal) d.Assign(i) return d } func SetOptimize(b bool) bool { old := optimize optimize = b return old } func ParseFloatPrefix(s string, bitSize int) (float64, int, error) { return parseFloatPrefix(s, bitSize) } func MulByLog2Log10(x int) int { return mulByLog2Log10(x) } func MulByLog10Log2(x int) int { return mulByLog10Log2(x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 15 08:44:21 UTC 2021 - 618 bytes - Viewed (0) -
src/strconv/atoc.go
// license that can be found in the LICENSE file. package strconv import "internal/stringslite" const fnParseComplex = "ParseComplex" // convErr splits an error returned by parseFloatPrefix // into a syntax or range error for ParseComplex. func convErr(err error, s string) (syntax, range_ error) { if x, ok := err.(*NumError); ok { x.Func = fnParseComplex x.Num = stringslite.Clone(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:26 UTC 2024 - 3.1K bytes - Viewed (0) -
src/strconv/atof_test.go
for _, suffix := range []string{" ", "q", "+", "-", "<", "=", ">", "(", ")", "i", "init"} { in := test.in + suffix _, n, err := ParseFloatPrefix(in, 64) if err != nil { t.Errorf("ParseFloatPrefix(%q, 64): err = %v; want no error", in, err) } if n != len(test.in) { t.Errorf("ParseFloatPrefix(%q, 64): n = %d; want %d", in, n, len(test.in)) } } } } func testAtof(t *testing.T, opt bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 16:24:57 UTC 2022 - 23.6K bytes - Viewed (0) -
src/strconv/atof.go
func ParseFloat(s string, bitSize int) (float64, error) { f, n, err := parseFloatPrefix(s, bitSize) if n != len(s) && (err == nil || err.(*NumError).Err != ErrSyntax) { return 0, syntaxError(fnParseFloat, s) } return f, err } func parseFloatPrefix(s string, bitSize int) (float64, int, error) { if bitSize == 32 { f, n, err := atof32(s) return float64(f), n, err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 06 18:50:50 UTC 2022 - 15.9K bytes - Viewed (0)