- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewDec (0.09 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
bigMostNegative = big.NewInt(mostNegative) ) func dec(i int64, exponent int) infDecAmount { // See the below test-- scale is the negative of an exponent. return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))} } func bigDec(i *big.Int, exponent int) infDecAmount { // See the below test-- scale is the negative of an exponent. return infDecAmount{inf.NewDecBig(i, inf.Scale(-exponent))} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
src/time/time_test.go
for i := int64(0); i < 100; i++ { sec := notMonoTime.Unix() notMonoTime = notMonoTime.Add(Duration(i * 1e9)) if newSec := notMonoTime.Unix(); newSec != sec+i && newSec+UnixToInternal != maxInt64 { t.Fatalf("time ext: %d overflows with positive delta, overflow threshold: %d", newSec, maxInt64) } } // Test it with negative delta. maxInt64 = -maxInt64 notMonoTime = NotMonoNegativeTime
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)