Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,595 for integers (0.14 sec)

  1. src/text/template/funcs.go

    }
    
    // not returns the Boolean negation of its argument.
    func not(arg reflect.Value) bool {
    	return !truth(arg)
    }
    
    // Comparison.
    
    // TODO: Perhaps allow comparison between signed and unsigned integers.
    
    var (
    	errBadComparisonType = errors.New("invalid type for comparison")
    	errBadComparison     = errors.New("incompatible types for comparison")
    	errNoComparison      = errors.New("missing argument for comparison")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. src/math/big/int.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file implements signed multi-precision integers.
    
    package big
    
    import (
    	"fmt"
    	"io"
    	"math/rand"
    	"strings"
    )
    
    // An Int represents a signed multi-precision integer.
    // The zero value for an Int represents the value 0.
    //
    // Operations always take pointer arguments (*Int) rather
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  3. src/syscall/js/js.go

    //	| js.Value               | [its value]            |
    //	| js.Func                | function               |
    //	| nil                    | null                   |
    //	| bool                   | boolean                |
    //	| integers and floats    | number                 |
    //	| string                 | string                 |
    //	| []interface{}          | new array              |
    //	| map[string]interface{} | new object             |
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/LongMathTest.java

        tester.setDefault(long.class, 1L);
        tester.testAllPublicStaticMethods(LongMath.class);
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeSmall() {
        // Check the first 1000 integers
        for (int i = 2; i < 1000; i++) {
          assertEquals(BigInteger.valueOf(i).isProbablePrime(100), LongMath.isPrime(i));
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Ints.java

       *     {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too
       *     small
       */
      public static int saturatedCast(long value) {
        if (value > Integer.MAX_VALUE) {
          return Integer.MAX_VALUE;
        }
        if (value < Integer.MIN_VALUE) {
          return Integer.MIN_VALUE;
        }
        return (int) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/LongMathTest.java

        tester.setDefault(long.class, 1L);
        tester.testAllPublicStaticMethods(LongMath.class);
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeSmall() {
        // Check the first 1000 integers
        for (int i = 2; i < 1000; i++) {
          assertEquals(BigInteger.valueOf(i).isProbablePrime(100), LongMath.isPrime(i));
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  7. src/runtime/metrics.go

    		// and exclusive upper-bound (e.g. 48-byte size class is
    		// [33, 49)). We can achieve this by shifting all bucket
    		// boundaries up by 1.
    		//
    		// Also, a float64 can precisely represent integers with
    		// value up to 2^53 and size classes are relatively small
    		// (nowhere near 2^48 even) so this will give us exact
    		// boundaries.
    		sizeClassBuckets[i] = float64(class_to_size[i] + 1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Ints.java

       *     {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too
       *     small
       */
      public static int saturatedCast(long value) {
        if (value > Integer.MAX_VALUE) {
          return Integer.MAX_VALUE;
        }
        if (value < Integer.MIN_VALUE) {
          return Integer.MIN_VALUE;
        }
        return (int) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. src/runtime/extern.go

    	is found in a pointer-typed location. Setting invalidptr=0 disables this check.
    	This should only be used as a temporary workaround to diagnose buggy code.
    	The real fix is to not store integers in pointer-typed locations.
    
    	sbrk: setting sbrk=1 replaces the memory allocator and garbage collector
    	with a trivial allocator that obtains memory from the operating system and
    	never reclaims any memory.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. src/text/scanner/scanner.go

    		s += fmt.Sprintf(":%d:%d", pos.Line, pos.Column)
    	}
    	return s
    }
    
    // Predefined mode bits to control recognition of tokens. For instance,
    // to configure a [Scanner] such that it only recognizes (Go) identifiers,
    // integers, and skips comments, set the Scanner's Mode field to:
    //
    //	ScanIdents | ScanInts | SkipComments
    //
    // With the exceptions of comments, which are skipped if SkipComments is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top