Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 470 for ROUND (0.1 sec)

  1. pkg/api/testing/fuzzer.go

    	return []interface{}{
    		func(j *runtime.Object, c fuzz.Continue) {
    			// TODO: uncomment when round trip starts from a versioned object
    			if true { //c.RandBool() {
    				*j = &runtime.Unknown{
    					// We do not set TypeMeta here because it is not carried through a round trip
    					Raw:         []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. src/time/mono_test.go

    	no("tu.Local()", tu.Local())
    	no("tu.UTC()", tu.UTC())
    	no("tu.Round(2)", tu.Round(2))
    	no("tu.Truncate(2)", tu.Truncate(2))
    
    	yes("tm.Add(1)", tm.Add(1))
    	no("tm.AddDate(1, 1, 1)", tm.AddDate(1, 1, 1))
    	no("tm.AddDate(0, 0, 0)", tm.AddDate(0, 0, 0))
    	no("tm.In(UTC)", tm.In(UTC))
    	no("tm.Local()", tm.Local())
    	no("tm.UTC()", tm.UTC())
    	no("tm.Round(2)", tm.Round(2))
    	no("tm.Truncate(2)", tm.Truncate(2))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 17:10:49 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  3. src/math/big/float.go

    				}
    				return 0.0, Below
    			}
    			// otherwise, round up
    			// We handle p == 0 explicitly because it's easy and because
    			// Float.round doesn't support rounding to 0 bits of precision.
    			if p == 0 {
    				if x.neg {
    					return -math.SmallestNonzeroFloat32, Below
    				}
    				return math.SmallestNonzeroFloat32, Above
    			}
    		}
    		// p > 0
    
    		// round
    		var r Float
    		r.prec = uint32(p)
    		r.Set(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  4. samples/bookinfo/src/productpage/templates/productpage.html

            <span class="sr-only">Close</span>
            <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
              <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
            </svg>
          </button>
        </div>
        <div class="sm:mx-auto sm:w-full sm:max-w-sm">
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 19:54:05 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. src/crypto/sha1/sha1block_amd64.s

    //   - rounds 60-79 are type 4 and do not load data (ROUND4 macro).
    //
    // Each round loads or shuffles the data, then computes a per-round
    // function of b, c, d, and then mixes the result into and rotates the
    // five registers a, b, c, d, e holding the intermediate results.
    //
    // The register rotation is implemented by rotating the arguments to
    // the round macros instead of by explicit move instructions.
    
    #define LOAD(index) \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  6. src/time/time.go

    }
    
    // Round returns the result of rounding d to the nearest multiple of m.
    // The rounding behavior for halfway values is to round away from zero.
    // If the result exceeds the maximum (or minimum)
    // value that can be stored in a [Duration],
    // Round returns the maximum (or minimum) duration.
    // If m <= 0, Round returns d unchanged.
    func (d Duration) Round(m Duration) Duration {
    	if m <= 0 {
    		return d
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/fields_test.go

    import (
    	"reflect"
    	"strings"
    	"testing"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"sigs.k8s.io/structured-merge-diff/v4/fieldpath"
    )
    
    // TestFieldsRoundTrip tests that a fields trie can be round tripped as a path set
    func TestFieldsRoundTrip(t *testing.T) {
    	tests := []metav1.FieldsV1{
    		{
    			Raw: []byte(`{"f:metadata":{".":{},"f:name":{}}}`),
    		},
    		EmptyFields,
    	}
    
    	for _, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors_test.go

    				AdmissionReviewVersions: accessor.GetAdmissionReviewVersions(),
    				MatchConditions:         accessor.GetMatchConditions(),
    			}
    			if !reflect.DeepEqual(orig, copy) {
    				t.Errorf("expected mutatingWebhook to round trip through WebhookAccessor, diff:\n%s", cmp.Diff(orig, copy))
    			}
    		})
    	}
    }
    
    func TestValidatingWebhookAccessor(t *testing.T) {
    	f := fuzz.New()
    	for i := 0; i < 100; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/Utf8Test.java

              // Four byte characters
              FOUR_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      /** Tests that round tripping of all two byte permutations work. */
      @GwtIncompatible // java.nio.charset.Charset
      public void testIsWellFormed_1Byte() {
        testBytes(1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT);
      }
    
      /** Tests that round tripping of all two byte permutations work. */
      @GwtIncompatible // java.nio.charset.Charset
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/time/time_test.go

    			return false
    		}
    
    		// To round, add d back if remainder r > d/2 or r == exactly d/2.
    		// The commented out code would round half to even instead of up,
    		// but that makes it time-zone dependent, which is a bit strange.
    		if r > int64(d)/2 || r+r == int64(d) /*&& bq.Bit(0) == 1*/ {
    			t1 = t1.Add(d)
    		}
    
    		// Check that time.Round works.
    		if rnd := t0.Round(d); rnd != t1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top