Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 150 for Precision (0.19 seconds)

  1. 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)
    			}
    		}
    	}
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed Aug 20 04:51:17 GMT 2025
    - 65.2K bytes
    - Click Count (0)
  2. 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.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/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" }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 10K bytes
    - Click Count (0)
  4. 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()
    }
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Click Count (0)
  5. migrator/migrator.go

    				alterColumn = true
    			}
    		}
    	} else {
    		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
    	if nullable, ok := columnType.Nullable(); ok && nullable == field.NotNull {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Oct 26 12:31:09 GMT 2025
    - 29.7K bytes
    - Click Count (0)
  6. guava/src/com/google/common/math/Stats.java

      }
    
      /**
       * Returns statistics over a dataset containing the given values.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       */
      public static Stats of(Iterable<? extends Number> values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Hashing.java

     * @author Austin Appleby
     */
    @GwtCompatible
    final class Hashing {
      private Hashing() {}
    
      /*
       * These should be ints, but we need to use longs to force GWT to do the multiplications with
       * enough precision.
       */
      private static final long C1 = 0xcc9e2d51;
      private static final long C2 = 0x1b873593;
    
      /*
       * This method was rewritten in Java from an intermediate step of the Murmur hash function in
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  8. src/cmd/asm/internal/asm/testdata/riscv64.s

    	FNMADDS	F1, F2, F3, F4				// 4f822018
    
    	// 20.8: Single-Precision Floating-Point Compare Instructions
    	FEQS	F0, F1, X7				// d3a300a0
    	FLTS	F0, F1, X7				// d39300a0
    	FLES	F0, F1, X7				// d38300a0
    
    	// 20.9: Single-Precision Floating-Point Classify Instruction
    	FCLASSS	F0, X5					// d31200e0
    
    	// 21.3: Double-Precision Load and Store Instructions
    	FLD	(X5), F0				// 07b00200
    	FLD	4(X5), F0				// 07b04200
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Nov 13 12:17:37 GMT 2025
    - 73.7K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Hashing.java

     * @author Austin Appleby
     */
    @GwtCompatible
    final class Hashing {
      private Hashing() {}
    
      /*
       * These should be ints, but we need to use longs to force GWT to do the multiplications with
       * enough precision.
       */
      private static final long C1 = 0xcc9e2d51;
      private static final long C2 = 0x1b873593;
    
      /*
       * This method was rewritten in Java from an intermediate step of the Murmur hash function in
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/math/StatsAccumulator.java

       *     cause loss of precision)
       */
      public void addAll(Iterable<? extends Number> values) {
        for (Number value : values) {
          add(value.doubleValue());
        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Apr 14 16:36:11 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top