Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 84 for unrepresentable (0.17 sec)

  1. src/cmd/compile/internal/types2/const.go

    		check.error(atPos(opPos), InvalidConstVal, "constant result is not representable")
    		return
    	}
    
    	// Typed constants must be representable in
    	// their type after each constant operation.
    	// x.typ cannot be a type parameter (type
    	// parameters cannot be constant types).
    	if isTyped(x.typ) {
    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/go/types/const.go

    		check.error(atPos(opPos), InvalidConstVal, "constant result is not representable")
    		return
    	}
    
    	// Typed constants must be representable in
    	// their type after each constant operation.
    	// x.typ cannot be a type parameter (type
    	// parameters cannot be constant types).
    	if isTyped(x.typ) {
    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

            .setExpectation(Math.pow(2, 53), values())
            .test();
      }
    
      public void testRoundToDouble_maxPreciselyRepresentablePlusOne() {
        double twoToThe53 = Math.pow(2, 53);
        // the representable doubles are 2^53 and 2^53 + 2.
        // 2^53+1 is halfway between, so HALF_UP will go up and HALF_DOWN will go down.
        new RoundToDoubleTester(BigDecimal.valueOf((1L << 53) + 1))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/math/nextafter.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // Nextafter32 returns the next representable float32 value after x towards y.
    //
    // Special cases are:
    //
    //	Nextafter32(x, x)   = x
    //	Nextafter32(NaN, y) = NaN
    //	Nextafter32(x, NaN) = NaN
    func Nextafter32(x, y float32) (r float32) {
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  5. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSymbolDeclarationRendererProvider.kt

        /**
         * Render symbol into the representable Kotlin string
         */
        public fun KaDeclarationSymbol.render(renderer: KaDeclarationRenderer = KaDeclarationRendererForSource.WITH_QUALIFIED_NAMES): String =
            withValidityAssertion { analysisSession.symbolDeclarationRendererProvider.renderDeclaration(this, renderer) }
    
        /**
         * Render kotlin type into the representable Kotlin type string
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds.go

    // The `ssScale` constant is private to the implementation here,
    // no other code should use it.
    type SeatSeconds uint64
    
    // MaxSeatsSeconds is the maximum representable value of SeatSeconds
    const MaxSeatSeconds = SeatSeconds(math.MaxUint64)
    
    // MinSeatSeconds is the lowest representable value of SeatSeconds
    const MinSeatSeconds = SeatSeconds(0)
    
    // SeatsTimeDuration produces the SeatSeconds value for the given factors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 09:16:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/math/const.go

    	Log10E = 1 / Ln10
    )
    
    // Floating-point limit values.
    // Max is the largest finite value representable by the type.
    // SmallestNonzero is the smallest positive, non-zero value representable by the type.
    const (
    	MaxFloat32             = 0x1p127 * (1 + (1 - 0x1p-23)) // 3.40282346638528859811704183484516925440e+38
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 21 14:07:39 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/ToDoubleRounder.java

    import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.math.RoundingMode;
    
    /**
     * Helper type to implement rounding {@code X} to a representable {@code double} value according to
     * a {@link RoundingMode}.
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    abstract class ToDoubleRounder<X extends Number & Comparable<X>> {
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue20583.go

    const (
    	_ = 6e886451608 /* ERROR "malformed constant" */ /2
    	_ = 6e886451608i /* ERROR "malformed constant" */ /2
    	_ = 0 * 1e+1000000000 // ERROR "malformed constant"
    
    	x = 1e100000000
    	_ = x*x*x*x*x*x* /* ERROR "not representable" */ x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 420 bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue52031.go

    package p
    
    type resultFlags uint
    
    // Example from #52031.
    //
    // The following shifts should not produce errors on Go < 1.13, as their
    // untyped constant operands are representable by type uint.
    const (
    	_ resultFlags = (1 << iota) / 2
    
    	reportEqual
    	reportUnequal
    	reportByIgnore
    	reportByMethod
    	reportByFunc
    	reportByCycle
    )
    
    // Invalid cases.
    var x int = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 733 bytes
    - Viewed (0)
Back to top