- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 318 for rounds (0.09 sec)
-
src/strconv/ftoaryu.go
max := uint64pow10[prec] trimmed := 0 for m >= max { a, b := m/10, m%10 m = a trimmed++ if b > 5 { roundUp = true } else if b < 5 { roundUp = false } else { // b == 5 // round up if there are trailing digits, // or if the new value of m is odd (round-to-even convention) roundUp = trunc || m&1 == 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 00:28:56 UTC 2022 - 15.7K bytes - Viewed (0) -
src/runtime/stubs.go
func systemstack_switch() // alignUp rounds n up to a multiple of a. a must be a power of 2. // //go:nosplit func alignUp(n, a uintptr) uintptr { return (n + a - 1) &^ (a - 1) } // alignDown rounds n down to a multiple of a. a must be a power of 2. // //go:nosplit func alignDown(n, a uintptr) uintptr { return n &^ (a - 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 20.2K bytes - Viewed (0) -
tests/integration/telemetry/api/dashboard_test.go
// These calls are not under tests, the dashboards are, so we can be leniant here log.Warnf("requests failed: %v", err) } } case <-done: scopes.Framework.Infof("done sending traffic after %v rounds", times) return } } } // extractQueries pulls all prometheus queries out of a grafana dashboard // Rather than importing the entire grafana API just for this test, do some shoddy json parsing
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 20:46:28 UTC 2024 - 11.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// Negative numbers are rounded away from zero (-9 scale 1 rounds to -10). func (q *Quantity) RoundUp(scale Scale) bool { if q.d.Dec != nil { q.s = "" d, exact := q.d.AsScale(scale) q.d = d return exact } // avoid clearing the string value if we have already calculated it if q.i.scale >= scale { return true } q.s = ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td
(TF_IdentityOp $input)>; // Implements TF Round on floats using basic operations. TF Round is specified // as RoundHalfToEven to be compatible with Numpy. def LowerRoundOpOnFloatTensor : Pat< (TF_RoundOp:$res TF_FloatTensor:$input), (TF_SelectV2Op (TF_EqualOp (TF_ConstOp:$zero (GetScalarOfFloatType<"0.0"> $input)), (TF_SelectV2Op:$rounded (TF_LogicalOrOp (TF_GreaterOp
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 24.7K bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
var CalcSizeDisabled bool // machine size and rounding alignment is dictated around // the size of a pointer, set in gc.Main (see ../gc/main.go). var defercalc int // RoundUp rounds o to a multiple of r, r is a power of 2. func RoundUp(o int64, r int64) int64 { if r < 1 || r > 8 || r&(r-1) != 0 { base.Fatalf("Round %d", r) } return (o + r - 1) &^ (r - 1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0) -
src/net/tcpsock.go
ln, err := sl.listenTCP(context.Background(), laddr) if err != nil { return nil, &OpError{Op: "listen", Net: network, Source: nil, Addr: laddr.opAddr(), Err: err} } return ln, nil } // roundDurationUp rounds d to the next multiple of to. func roundDurationUp(d time.Duration, to time.Duration) time.Duration { return (d + to - 1) / to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 13.7K bytes - Viewed (0) -
src/strconv/atof.go
for mantissa > 1 && exp < minExp-2 { mantissa = mantissa>>1 | mantissa&1 exp++ } // Round using two bottom bits. round := mantissa & 3 mantissa >>= 2 round |= mantissa & 1 // round to even (round up if mantissa is odd) exp += 2 if round == 3 { mantissa++ if mantissa == 1<<(1+flt.mantbits) { mantissa >>= 1 exp++ } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 06 18:50:50 UTC 2022 - 15.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LongMath.java
checkNotNull(mode); long div = p / q; // throws if q == 0 long rem = p - q * div; // equals p % q if (rem == 0) { return div; } /* * Normal Java division rounds towards 0, consistently with RoundingMode.DOWN. We just have to * deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of * p / q. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 44.6K bytes - Viewed (0) -
src/strconv/atof_test.go
{"0x0.1234567p-125", "1.671814e-39", nil}, // rounded down {"0x0.1234568p-125", "1.671814e-39", nil}, // rounded down {"0x0.1234569p-125", "1.671815e-39", nil}, // rounded up {"0x0.1234570p-125", "1.671815e-39", nil}, // 0x00123457 {"0x0.0000010p-125", "1e-45", nil}, // 0x00000001 {"0x0.00000081p-125", "1e-45", nil}, // rounded up {"0x0.0000008p-125", "0", nil}, // rounded down
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 16:24:57 UTC 2022 - 23.6K bytes - Viewed (0)