Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 301 for decimal32 (0.21 sec)

  1. src/math/big/decimal_test.go

    )
    
    func TestDecimalString(t *testing.T) {
    	for _, test := range []struct {
    		x    decimal
    		want string
    	}{
    		{want: "0"},
    		{decimal{nil, 1000}, "0"}, // exponent of 0 is ignored
    		{decimal{[]byte("12345"), 0}, "0.12345"},
    		{decimal{[]byte("12345"), -3}, "0.00012345"},
    		{decimal{[]byte("12345"), +3}, "123.45"},
    		{decimal{[]byte("12345"), +10}, "1234500000"},
    	} {
    		if got := test.x.String(); got != test.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 05:54:35 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/suffix.go

    	switch s {
    	case "":
    		return 10, 0, DecimalSI, true
    	case "n":
    		return 10, -9, DecimalSI, true
    	case "u":
    		return 10, -6, DecimalSI, true
    	case "m":
    		return 10, -3, DecimalSI, true
    	case "k":
    		return 10, 3, DecimalSI, true
    	case "M":
    		return 10, 6, DecimalSI, true
    	case "G":
    		return 10, 9, DecimalSI, true
    	}
    	return l.suffixHandler.interpret(s)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  3. pkg/kubelet/nodestatus/setters_test.go

    						v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI),
    						v1.ResourcePods:   *resource.NewQuantity(10, resource.DecimalSI),
    					},
    					Allocatable: v1.ResourceList{
    						v1.ResourceCPU:    *resource.NewMilliQuantity(2000, resource.DecimalSI),
    						v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI),
    						v1.ResourcePods:   *resource.NewQuantity(10, resource.DecimalSI),
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  4. src/internal/gover/gover.go

    	Minor string // decimal or ""
    	Patch string // decimal or ""
    	Kind  string // "", "alpha", "beta", "rc"
    	Pre   string // decimal or ""
    }
    
    // Compare returns -1, 0, or +1 depending on whether
    // x < y, x == y, or x > y, interpreted as toolchain versions.
    // The versions x and y must not begin with a "go" prefix: just "1.21" not "go1.21".
    // Malformed versions compare less than well-formed versions and equal to each other.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. test/fixedbugs/issue41780.go

    // Checks that conversion of CMP(x,-y) -> CMN(x,y) is only applied in correct context.
    
    package main
    
    type decimal struct {
    	d  [8]byte // digits, big-endian representation
    	dp int     // decimal point
    }
    
    var powtab = []int{1, 3, 6, 9, 13, 16, 19, 23, 26}
    
    //go:noinline
    func foo(d *decimal) int {
    	exp := int(d.d[1])
    	if d.dp < 0 || d.dp == 0 && d.d[0] < '5' {
    		var n int
    		if -d.dp >= len(powtab) {
    			n = 27
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 06 01:14:39 UTC 2020
    - 845 bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/memory_manager_test.go

    				hugepages2M: *resource.NewQuantity(14, resource.DecimalSI),
    				hugepages1G: *resource.NewQuantity(13, resource.DecimalSI)},
    			machineInfo,
    			[]kubeletconfig.MemoryReservation{
    				{
    					NumaNode: 0,
    					Limits: v1.ResourceList{
    						v1.ResourceMemory: *resource.NewQuantity(12, resource.DecimalSI),
    						hugepages2M:       *resource.NewQuantity(70, resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 13:01:40 UTC 2023
    - 70.2K bytes
    - Viewed (0)
  7. dbflute_fess/dfprop/databaseInfoMap.dfprop

    # | NUMERIC       | java.math.BigDecimal | decimal?      |
    # | DECIMAL       | java.math.BigDecimal | decimal?      |
    # | TINYINT       | java.lang.Integer    | int?          |
    # | SMALLINT      | java.lang.Integer    | int?          |
    # | INTEGER       | java.lang.Integer    | int?          |
    # | BIGINT        | java.lang.Long       | long?         |
    # | REAL          | java.math.BigDecimal | decimal?      |
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sat Oct 31 23:35:14 UTC 2015
    - 7.3K bytes
    - Viewed (0)
  8. pkg/apis/autoscaling/validation/validation_test.go

    							},
    							Target: autoscaling.MetricTarget{
    								Type:         autoscaling.ValueMetricType,
    								Value:        resource.NewMilliQuantity(300, resource.DecimalSI),
    								AverageValue: resource.NewMilliQuantity(300, resource.DecimalSI),
    							},
    						},
    					}},
    				},
    			},
    			msg: "may not set both a target value for metric and a per-pod target",
    		}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  9. tests/test_multi_body_errors.py

    from decimal import Decimal
    from typing import List
    
    from dirty_equals import IsDict, IsOneOf
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, condecimal
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        age: condecimal(gt=Decimal(0.0))  # type: ignore
    
    
    @app.post("/items/")
    def save_item_no_body(item: List[Item]):
        return {"item": item}
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. pkg/kubelet/lifecycle/predicate_test.go

    	return v1.ResourceList{
    		v1.ResourceCPU:              *resource.NewMilliQuantity(milliCPU, resource.DecimalSI),
    		v1.ResourceMemory:           *resource.NewQuantity(memory, resource.BinarySI),
    		v1.ResourcePods:             *resource.NewQuantity(pods, resource.DecimalSI),
    		extendedResourceA:           *resource.NewQuantity(extendedA, resource.DecimalSI),
    		v1.ResourceEphemeralStorage: *resource.NewQuantity(storage, resource.BinarySI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top