Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 309 for Precision (0.21 sec)

  1. internal/amztime/iso8601_time.go

    const (
    	iso8601TimeFormat     = "2006-01-02T15:04:05.000Z"    // Reply date format with millisecond precision.
    	iso8601TimeFormatLong = "2006-01-02T15:04:05.000000Z" // Reply date format with nanosecond precision.
    )
    
    // ISO8601Format converts time 't' into ISO8601 time format expected in AWS S3 spec.
    //
    // This function is needed to avoid a Go's float64 precision bug, where Go avoids
    // padding the extra '0' before the timezone.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

         * will not be used and a network request will be made.
         *
         * @param maxAge a non-negative duration. This is stored and transmitted with [TimeUnit.SECONDS]
         *     precision; finer precision will be lost.
         */
        fun maxAge(maxAge: Duration) =
          apply {
            val maxAgeSeconds = maxAge.inWholeSeconds
            require(maxAgeSeconds >= 0) { "maxAge < 0: $maxAgeSeconds" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/riscv64.s

    	FNMADDS	F1, F2, F3, F4				// 4f822018
    
    	// 11.8: Single-Precision Floating-Point Compare Instructions
    	FEQS	F0, F1, X7				// d3a300a0
    	FLTS	F0, F1, X7				// d39300a0
    	FLES	F0, F1, X7				// d38300a0
    
    	// 11.9: Single-Precision Floating-Point Classify Instruction
    	FCLASSS	F0, X5					// d31200e0
    
    	// 12.3: Double-Precision Load and Store Instructions
    	FLD	(X5), F0				// 07b00200
    	FLD	4(X5), F0				// 07b04200
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 22 04:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/DoubleMath.java

        return (long) z;
      }
    
      private static final double MIN_LONG_AS_DOUBLE = -0x1p63;
      /*
       * We cannot store Long.MAX_VALUE as a double without losing precision. Instead, we store
       * Long.MAX_VALUE + 1 == -Long.MIN_VALUE, and then offset all comparisons by 1.
       */
      private static final double MAX_LONG_AS_DOUBLE_PLUS_ONE = 0x1p63;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  5. tests/migrate_test.go

    			}
    		case "salary":
    			if precision, o, _ := columnType.DecimalSize(); (fullSupported || precision != 0) && precision != 2 {
    				t.Fatalf("salary's precision should be 2, but got %v %v", precision, o)
    			}
    		case "birthday":
    			if precision, _, _ := columnType.DecimalSize(); (fullSupported || precision != 0) && precision != 2 {
    				t.Fatalf("birthday's precision should be 2, but got %v", precision)
    			}
    		}
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. migrator/column_type.go

    	if ct.LengthValue.Valid {
    		return ct.LengthValue.Int64, true
    	}
    	return ct.SQLColumnType.Length()
    }
    
    // DecimalSize returns the scale and precision of a decimal type.
    func (ct ColumnType) DecimalSize() (precision int64, scale int64, ok bool) {
    	if ct.DecimalSizeValue.Valid {
    		return ct.DecimalSizeValue.Int64, ct.ScaleValue.Int64, true
    	}
    	return ct.SQLColumnType.DecimalSize()
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  7. migrator/migrator.go

    					(len(matches2) == 1 && matches2[0][1] != fmt.Sprint(length) && ok) {
    					alterColumn = true
    				}
    			}
    		}
    
    		// check precision
    		if precision, _, ok := columnType.DecimalSize(); ok && int64(field.Precision) != precision {
    			if regexp.MustCompile(fmt.Sprintf("[^0-9]%d[^0-9]", field.Precision)).MatchString(m.DataTypeOf(field)) {
    				alterColumn = true
    			}
    		}
    	}
    
    	// check nullable
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LinearTransformationTest.java

        assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(slope);
        // Note that we cannot test the actual mapping of points, as the results will be unreliable due
        // to loss of precision with this value of the slope.
      }
    
      public void testMappingWithSlope_maximalSlope() {
        double x1 = 1.2;
        double y1 = 3.4;
        double slope = Double.MAX_VALUE;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

        assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(slope);
        // Note that we cannot test the actual mapping of points, as the results will be unreliable due
        // to loss of precision with this value of the slope.
      }
    
      public void testMappingWithSlope_maximalSlope() {
        double x1 = 1.2;
        double y1 = 3.4;
        double slope = Double.MAX_VALUE;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

      static native String emptyToNull(@Nullable String string) /*-{
        return string || null;
      }-*/;
    
      @JsType(isNative = true, name = "number", namespace = GLOBAL)
      private interface Number {
        double toPrecision(int precision);
      }
    
      static CommonPattern compilePattern(String pattern) {
        throw new UnsupportedOperationException();
      }
    
      static boolean patternCompilerIsPcreLike() {
        throw new UnsupportedOperationException();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 17:58:45 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top