Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for decimalSI (0.22 sec)

  1. doc/go1.17_spec.html

    the literal value.
    </p>
    
    <pre class="ebnf">
    float_lit         = decimal_float_lit | hex_float_lit .
    
    decimal_float_lit = decimal_digits "." [ decimal_digits ] [ decimal_exponent ] |
                        decimal_digits decimal_exponent |
                        "." decimal_digits [ decimal_exponent ] .
    decimal_exponent  = ( "e" | "E" ) [ "+" | "-" ] decimal_digits .
    
    hex_float_lit     = "0" ( "x" | "X" ) hex_mantissa hex_exponent .
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/archive/tar/strconv.go

    	// The size field ends at the first space.
    	nStr, rest, ok := strings.Cut(s, " ")
    	if !ok {
    		return "", "", s, ErrHeader
    	}
    
    	// Parse the first token as a decimal integer.
    	n, perr := strconv.ParseInt(nStr, 10, 0) // Intentionally parse as native int
    	if perr != nil || n < 5 || n > int64(len(s)) {
    		return "", "", s, ErrHeader
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  3. src/bufio/example_test.go

    		fmt.Fprintln(os.Stderr, "reading input:", err)
    	}
    	fmt.Printf("%d\n", count)
    	// Output: 15
    }
    
    // Use a Scanner with a custom split function (built by wrapping ScanWords) to validate
    // 32-bit decimal input.
    func ExampleScanner_custom() {
    	// An artificial input source.
    	const input = "1234 5678 1234567901234567890"
    	scanner := bufio.NewScanner(strings.NewReader(input))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    		// and we can translate it as a constant value, do so.
    		if n.Define != "" {
    			if i, err := strconv.ParseInt(n.Define, 0, 64); err == nil {
    				n.Kind = "iconst"
    				// Turn decimal into hex, just for consistency
    				// with enum-derived constants. Otherwise
    				// in the cgo -godefs output half the constants
    				// are in hex and half are in whatever the #define used.
    				n.Const = fmt.Sprintf("%#x", i)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  5. doc/go_spec.html

    the literal value.
    </p>
    
    <pre class="ebnf">
    float_lit         = decimal_float_lit | hex_float_lit .
    
    decimal_float_lit = decimal_digits "." [ decimal_digits ] [ decimal_exponent ] |
                        decimal_digits decimal_exponent |
                        "." decimal_digits [ decimal_exponent ] .
    decimal_exponent  = ( "e" | "E" ) [ "+" | "-" ] decimal_digits .
    
    hex_float_lit     = "0" ( "x" | "X" ) hex_mantissa hex_exponent .
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    func (p *Parser) address(operand []lex.Token) obj.Addr {
    	p.start(operand)
    	addr := obj.Addr{}
    	p.operand(&addr)
    	return addr
    }
    
    // parseScale converts a decimal string into a valid scale factor.
    func (p *Parser) parseScale(s string) int8 {
    	switch s {
    	case "1", "2", "4", "8":
    		return int8(s[0] - '0')
    	}
    	p.errorf("bad scale: %s", s)
    	return 0
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  7. src/archive/tar/reader.go

    //
    // Note that the GNU manual says that numeric values should be encoded in octal
    // format. However, the GNU tar utility itself outputs these values in decimal.
    // As such, this library treats values as being encoded in decimal.
    func readGNUSparseMap1x0(r io.Reader) (sparseDatas, error) {
    	var (
    		cntNewline int64
    		buf        bytes.Buffer
    		blk        block
    	)
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. misc/cgo/gmp/gmp.go

    		return os.ErrInvalid
    	}
    	p := C.CString(s)
    	defer C.free(unsafe.Pointer(p))
    	if C.mpz_set_str(&z.i[0], p, C.int(base)) < 0 {
    		return os.ErrInvalid
    	}
    	return nil
    }
    
    // String returns the decimal representation of z.
    func (z *Int) String() string {
    	if z == nil {
    		return "nil"
    	}
    	z.doinit()
    	p := C.mpz_get_str(nil, 10, &z.i[0])
    	s := C.GoString(p)
    	C.free(unsafe.Pointer(p))
    	return s
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
Back to top