- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for getIntOrPercentValue (0.19 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go
value = int(math.Floor(float64(value) * (float64(total)) / 100)) } } return value, nil } // getIntOrPercentValue is a legacy function and only meant to be called by GetValueFromIntOrPercent // For a more correct implementation call getIntOrPercentSafely func getIntOrPercentValue(intOrStr *IntOrString) (int, bool, error) { switch intOrStr.Type { case Int: return intOrStr.IntValue(), false, nil case String:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 7.8K bytes - Viewed (0)