Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for scanSign (0.14 sec)

  1. src/math/big/intconv.go

    	// determine sign
    	neg, err := scanSign(r)
    	if err != nil {
    		return nil, 0, err
    	}
    
    	// determine mantissa
    	z.abs, base, _, err = z.abs.scan(r, base, false)
    	if err != nil {
    		return nil, base, err
    	}
    	z.neg = len(z.abs) > 0 && neg // 0 has no sign
    
    	return z, base, nil
    }
    
    func scanSign(r io.ByteScanner) (neg bool, err error) {
    	var ch byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/math/big/floatconv.go

    	prec := z.prec
    	if prec == 0 {
    		prec = 64
    	}
    
    	// A reasonable value in case of an error.
    	z.form = zero
    
    	// sign
    	z.neg, err = scanSign(r)
    	if err != nil {
    		return
    	}
    
    	// mantissa
    	var fcount int // fractional digit count; valid if <= 0
    	z.mant, b, fcount, err = z.mant.scan(r, base, true)
    	if err != nil {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. src/math/big/ratconv.go

    			return nil, false
    		}
    		if len(z.b.abs) == 0 {
    			return nil, false
    		}
    		return z.norm(), true
    	}
    
    	// parse floating-point number
    	r := strings.NewReader(s)
    
    	// sign
    	neg, err := scanSign(r)
    	if err != nil {
    		return nil, false
    	}
    
    	// mantissa
    	var base int
    	var fcount int // fractional digit count; valid if <= 0
    	z.a.abs, base, fcount, err = z.a.abs.scan(r, 0, true)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. .github/workflows/scorecards-analysis.yml

            with:
              name: SARIF file
              path: results.sarif
              retention-days: 5
    
          # Upload the results to GitHub's code scanning dashboard.
          - name: "Upload to code-scanning"
            uses: github/codeql-action/upload-sarif@896079047b4bb059ba6f150a5d87d47dde99e6e5 # v2.11.6
            with:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 21 23:56:23 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  5. .github/workflows/scorecard.yml

            with:
              name: SARIF file
              path: results.sarif
              retention-days: 5
    
          # Upload the results to GitHub's code scanning dashboard.
          - name: "Upload to code-scanning"
            uses: github/codeql-action/upload-sarif@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8
            with:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 04 17:53:21 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. .github/workflows/codeql-analysis.yml

    name: "Code scanning - action"
    
    on:
      push:
        branches: [ main, master, release ]
      schedule:
        - cron: '0 5 * * *'
    
    permissions: {}
    
    jobs:
      CodeQL-Build:
        permissions:
          actions: read  # for github/codeql-action/init to get workflow details
          contents: read  # for actions/checkout to fetch code
          security-events: write  # for github/codeql-action/analyze to upload SARIF results
        runs-on: ubuntu-latest
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 02 09:13:16 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/math/big/example_test.go

    	if err != nil {
    		log.Println("error scanning value:", err)
    	} else {
    		fmt.Println(r)
    	}
    	// Output: 3/2
    }
    
    func ExampleInt_Scan() {
    	// The Scan function is rarely used directly;
    	// the fmt package recognizes it as an implementation of fmt.Scanner.
    	i := new(big.Int)
    	_, err := fmt.Sscan("18446744073709551617", i)
    	if err != nil {
    		log.Println("error scanning value:", err)
    	} else {
    		fmt.Println(i)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 26 16:15:32 UTC 2020
    - 4K bytes
    - Viewed (0)
  8. .github/workflows/codeql-analysis.yml

            language: ['java', 'javascript']
            # Learn more...
            # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
    
        steps:
        - name: Checkout repository
          uses: actions/checkout@v2
          with:
            # We must fetch at least the immediate parents so that if this is
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Fri Nov 17 21:22:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. .github/workflows/codeql-analysis.yml

            language: ['java']
            # Learn more...
            # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
    
        steps:
        - name: Checkout repository
          uses: actions/checkout@v2
          with:
            # We must fetch at least the immediate parents so that if this is
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Oct 02 13:22:07 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  10. src/fmt/scan_test.go

    	n, err := Fscan(strings.NewReader(text), &f, &f32, &f64)
    	if err != nil {
    		t.Errorf("got error scanning %q: %s", text, err)
    	}
    	if n != 3 {
    		t.Errorf("count error scanning %q: got %d", text, n)
    	}
    	if !math.IsNaN(float64(f)) || !math.IsNaN(float64(f32)) || !math.IsNaN(f64) {
    		t.Errorf("didn't get NaNs scanning %q: got %g %g %g", text, f, f32, f64)
    	}
    }
    
    func TestNaN(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
Back to top