- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 45 for PRECISION (0.07 seconds)
-
schema/field.go
} if num, ok := field.TagSettings["SIZE"]; ok { if field.Size, err = strconv.Atoi(num); err != nil { field.Size = -1 } } if p, ok := field.TagSettings["PRECISION"]; ok { field.Precision, _ = strconv.Atoi(p) } if s, ok := field.TagSettings["SCALE"]; ok { field.Scale, _ = strconv.Atoi(s) } // default value is function or null or blank (primary keys)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sat Nov 22 03:14:36 GMT 2025 - 32.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
byte[] buffer = new byte[8]; for (long time : testTimes) { SMBUtil.writeTime(time, buffer, 0); long readTime = SMBUtil.readTime(buffer, 0); // Account for precision loss in conversion long expectedTime = ((time + SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L) / 10000L - SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (0) -
guava/src/com/google/common/base/Stopwatch.java
* with any fraction rounded down. * * <p><b>Note:</b> the overhead of measurement can be more than a microsecond, so it is generally * not useful to specify {@link TimeUnit#NANOSECONDS} precision here. * * <p>It is generally not a good idea to use an ambiguous, unitless {@code long} to represent * elapsed time. Therefore, we recommend using {@link #elapsed()} instead, which returns aCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 9.2K bytes - Click Count (0) -
migrator.go
ColumnType() (columnType string, ok bool) // varchar(64) PrimaryKey() (isPrimaryKey bool, ok bool) AutoIncrement() (isAutoIncrement bool, ok bool) Length() (length int64, ok bool) DecimalSize() (precision int64, scale int64, ok bool) Nullable() (nullable bool, ok bool) Unique() (unique bool, ok bool) ScanType() reflect.Type Comment() (value string, ok bool) DefaultValue() (value string, ok bool) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 3.1K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java
return toPrecision(value, 4); } @JsMethod(name = "Number.prototype.toPrecision.call", namespace = JsPackage.GLOBAL) private static native String toPrecision(double value, int precision); @JsMethod static native boolean stringIsNullOrEmpty(@Nullable String string) /*-{ return !string; }-*/; @JsMethod static native String nullToEmpty(@Nullable String string) /*-{
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Feb 03 21:52:39 GMT 2025 - 2.2K bytes - Click Count (0) -
android/guava/src/com/google/common/math/Quantiles.java
* Computes the quantile value of the given dataset. * * @param dataset the dataset to do the calculation on, which must be non-empty, which will be * cast to doubles (with any associated lost of precision), and which will not be mutated by * this call (it is copied instead) * @return the quantile value */ public double compute(Collection<? extends Number> dataset) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 30.1K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
this.notBefore = notBefore this.notAfter = notAfter } /** * Sets the certificate to be valid immediately and until the specified duration has elapsed. * The precision of this field is seconds; further precision will be truncated. */ fun duration( duration: Long, unit: TimeUnit, ) = apply { val now = System.currentTimeMillis()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 21.6K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
data[7] = (byte) (high >> 24); PacDataInputStream pdis = createInputStream(data); Date date = pdis.readFiletime(); assertNotNull(date); // Allow for a small difference due to precision loss assertEquals(time / 1000, date.getTime() / 1000); // Test with null date (0x7fffffff ffffffff)
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 9.2K bytes - Click Count (0) -
schema/schema_helper_test.go
tests.AssertObjEqual(t, parsedField, f, "Name", "DBName", "BindNames", "DataType", "PrimaryKey", "AutoIncrement", "Creatable", "Updatable", "Readable", "HasDefaultValue", "DefaultValue", "NotNull", "Unique", "Comment", "Size", "Precision", "TagSettings") if f.DBName != "" { if field, ok := s.FieldsByDBName[f.DBName]; !ok || parsedField != field { t.Errorf("schema %v failed to look up field with dbname %v", s, f.DBName) } }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Aug 28 02:57:17 GMT 2025 - 7.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
// Verify time was read correctly (accounting for UTime conversion) long readTime = (Long) getFieldValue(response, "lastWriteTime"); // UTime is seconds since 1970, so we need to compare at second precision assertEquals(lastWriteTime / 1000, readTime / 1000); } @Test void testReadParameterWordsWireFormatWithZeroWordCount() { // Test reading when wordCount is 0Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0)