- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 310 for roundup (0.11 sec)
-
android/guava/src/com/google/common/primitives/UnsignedLong.java
return value; } /** * Returns the value of this {@code UnsignedLong} as a {@code float}, analogous to a widening * primitive conversion from {@code long} to {@code float}, and correctly rounded. */ @Override public float floatValue() { if (value >= 0) { return (float) value; } // The top bit is set, which means that the float value is going to come from the top 24 bits.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 22 13:09:25 UTC 2021 - 8.9K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedLong.java
return value; } /** * Returns the value of this {@code UnsignedLong} as a {@code float}, analogous to a widening * primitive conversion from {@code long} to {@code float}, and correctly rounded. */ @Override public float floatValue() { if (value >= 0) { return (float) value; } // The top bit is set, which means that the float value is going to come from the top 24 bits.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 22 13:09:25 UTC 2021 - 8.9K bytes - Viewed (0) -
src/math/big/rat_test.go
return false } if df.Cmp(df0) == 0 && !isEven32(f) { t.Errorf("Rat(%v).Float32() = %g (%b); halfway should have rounded to %g (%b) instead", r, f, f, f0, f0) return false } if df.Cmp(df1) == 0 && !isEven32(f) { t.Errorf("Rat(%v).Float32() = %g (%b); halfway should have rounded to %g (%b) instead", r, f, f, f1, f1) return false } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 00:15:59 UTC 2022 - 18.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizes_test.go
package main import "unsafe" // The foo struct size is expected to be rounded up to 16 bytes. type foo struct { a int64 b bool } func main() { assert(unsafe.Sizeof(foo{}) == 16) }`, }, { "issue60734", ` package main import ( "unsafe" ) // The Data struct size is expected to be rounded up to 16 bytes. type Data struct { Value uint32 // 4 bytes
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 21:00:48 UTC 2023 - 4.1K bytes - Viewed (0) -
src/net/tcpsockopt_darwin.go
sysTCP_KEEPCNT = 0x102 ) func setKeepAliveIdle(fd *netFD, d time.Duration) error { if d == 0 { d = defaultTCPKeepAliveIdle } else if d < 0 { return nil } // The kernel expects seconds so round to next highest second. secs := int(roundDurationUp(d, time.Second)) err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPALIVE, secs) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 1.4K bytes - Viewed (0) -
pkg/apis/autoscaling/v2/conversion.go
if err := autoConvert_autoscaling_HorizontalPodAutoscaler_To_v2_HorizontalPodAutoscaler(in, out, s); err != nil { return err } // v2 round-trips to internal without any serialized annotations, make sure any from other versions don't get serialized out.Annotations, _ = autoscaling.DropRoundTripHorizontalPodAutoscalerAnnotations(out.Annotations) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 09 02:34:54 UTC 2021 - 1.8K bytes - Viewed (0) -
android/guava/src/com/google/common/math/IntMath.java
// to make sure bit twiddling works as expected. return ~~(x - y) >>> (Integer.SIZE - 1); } /** * Returns the base-2 logarithm of {@code x}, rounded according to the specified rounding mode. * * @throws IllegalArgumentException if {@code x <= 0} * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 23.5K bytes - Viewed (0) -
src/net/tcpsockopt_windows.go
if !windows.SupportTCPKeepAliveIdle() { return setKeepAliveIdleAndInterval(fd, d, -1) } if d == 0 { d = defaultTCPKeepAliveIdle } else if d < 0 { return nil } // The kernel expects seconds so round to next highest second. secs := int(roundDurationUp(d, time.Second)) err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, windows.TCP_KEEPIDLE, secs) runtime.KeepAlive(fd) return os.NewSyscallError("setsockopt", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:35 UTC 2024 - 3.8K bytes - Viewed (0) -
utils/tests/utils.go
format := "2006-01-02T15:04:05Z07:00" if curTime.Round(time.Second).UTC().Format(format) != expect.(time.Time).Round(time.Second).UTC().Format(format) && curTime.Truncate(time.Second).UTC().Format(format) != expect.(time.Time).Truncate(time.Second).UTC().Format(format) { t.Errorf("%v: expect: %v, got %v after time round", utils.FileWithLineNum(), expect.(time.Time), curTime) }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Mar 10 09:21:56 UTC 2023 - 3.9K bytes - Viewed (0) -
pkg/generated/openapi/openapi_test.go
dummyRef := func(name string) spec.Ref { return spec.MustCreateRef("#/definitions/dummy") } for name, value := range GetOpenAPIDefinitions(dummyRef) { t.Run(name, func(t *testing.T) { // TODO(kubernetes/gengo#193): We currently round-trip ints to floats. value.Schema = *handler.PruneDefaultsSchema(&value.Schema) data, err := json.Marshal(value.Schema) if err != nil { t.Error(err) return } roundTripped := spec.Schema{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 1.8K bytes - Viewed (0)