- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for 1E19 (0.07 sec)
-
src/text/template/parse/parse_test.go
{"-1e9", true, false, true, false, -1e9, 0, -1e9, 0}, {"-1.2", false, false, true, false, 0, 0, -1.2, 0}, {"1e19", false, true, true, false, 0, 1e19, 1e19, 0}, {"1e1_9", false, true, true, false, 0, 1e19, 1e19, 0}, {"1E19", false, true, true, false, 0, 1e19, 1e19, 0}, {"-1e19", false, false, true, false, 0, 0, -1e19, 0}, {"0x_1p4", true, true, true, false, 16, 16, 16, 0}, {"0X_1P4", true, true, true, false, 16, 16, 16, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 24K bytes - Viewed (0) -
test/fixedbugs/issue43480.go
package main func isPow10(x uint64) bool { switch x { case 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19: return true } return false } func main() { var x uint64 = 1 for { if !isPow10(x) || isPow10(x-1) || isPow10(x+1) { panic(x) } next := x * 10 if next/10 != x {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 04 10:30:07 UTC 2021 - 626 bytes - Viewed (0) -
src/math/pow10.go
package math // pow10tab stores the pre-computed values 10**i for i < 32. var pow10tab = [...]float64{ 1e00, 1e01, 1e02, 1e03, 1e04, 1e05, 1e06, 1e07, 1e08, 1e09, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29, 1e30, 1e31, } // pow10postab32 stores the pre-computed value for 10**(i*32) at index i. var pow10postab32 = [...]float64{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go
} // AsScaledInt64 returns an int64 representing the value of this amount at the specified scale, // rounding up, or false if that would result in overflow. (1e20).AsScaledInt64(1) would result // in overflow because 1e19 is not representable as an int64. Note that setting a scale larger // than the current value may result in loss of precision - i.e. (1e-6).AsScaledInt64(0) would // return 1, because 0.000001 is rounded up to 1.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 13 19:42:28 UTC 2023 - 9.3K bytes - Viewed (0) -
src/strconv/atof.go
} return bits, overflow } // Exact powers of 10. var float64pow10 = []float64{ 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, } var float32pow10 = []float32{1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10} // If possible to convert decimal representation to 64-bit float f exactly,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 06 18:50:50 UTC 2022 - 15.9K bytes - Viewed (0) -
src/strconv/ftoaryu.go
formatDecimal(d, di, !d0, roundUp, prec) // Adjust exponent d.dp -= q } var uint64pow10 = [...]uint64{ 1, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, } // formatDecimal fills d with at most prec decimal digits // of mantissa m. The boolean trunc indicates whether m // is truncated compared to the original number being formatted.
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/math/big/natconv.go
const MaxBase = 10 + ('z' - 'a' + 1) + ('Z' - 'A' + 1) const maxBaseSmall = 10 + ('z' - 'a' + 1) // maxPow returns (b**n, n) such that b**n is the largest power b**n <= _M. // For instance maxPow(10) == (1e19, 19) for 19 decimal digits in a 64bit Word. // In other words, at most n digits in base b fit into a Word. // TODO(gri) replace this with a table, generated at build time. func maxPow(b Word) (p Word, n int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 14.6K bytes - Viewed (0) -
src/math/all_test.go
{Nextafter(1, 2), float64(1 << 63)}, {Nextafter(1, -2), float64(1 << 63)}, {Nextafter(-1, 2), float64(1 << 63)}, {Nextafter(-1, -2), float64(1 << 63)}, // Issue #57465 {Copysign(0, -1), 1e19}, {Copysign(0, -1), -1e19}, {Copysign(0, -1), 1<<53 - 1}, {Copysign(0, -1), -(1<<53 - 1)}, } var powSC = []float64{ 0, // pow(-Inf, -Pi) Copysign(0, -1), // pow(-Inf, -3)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K bytes - Viewed (0) -
src/strconv/eisel_lemire.go
{0x0000000000000000, 0x8E1BC9BF04000000}, // 1e16 {0x0000000000000000, 0xB1A2BC2EC5000000}, // 1e17 {0x0000000000000000, 0xDE0B6B3A76400000}, // 1e18 {0x0000000000000000, 0x8AC7230489E80000}, // 1e19 {0x0000000000000000, 0xAD78EBC5AC620000}, // 1e20 {0x0000000000000000, 0xD8D726B7177A8000}, // 1e21 {0x0000000000000000, 0x878678326EAC9000}, // 1e22 {0x0000000000000000, 0xA968163F0A57B400}, // 1e23
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 41.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/poset_test.go
{Equal, 15, 19}, {Equal, 15, vconst(20)}, {Equal, 15, vconst2(20)}, {Equal, 15, 25}, {Equal, 16, 17}, {Equal, 16, 18}, {Equal, 16, 19}, {Equal, 16, vconst(20)}, {Equal, 16, vconst2(20)}, {Equal, 16, 25}, {Equal, 17, 18}, {Equal, 17, 19}, {Equal, 17, vconst(20)}, {Equal, 17, vconst2(20)}, {Equal, 17, 25}, {Equal, 18, 19},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 26 07:52:35 UTC 2019 - 18.1K bytes - Viewed (0)