- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for MaxExp (0.11 sec)
-
src/go/constant/value.go
if math.IsInf(x, 0) { return false } _, e := math.Frexp(x) return -maxExp < e && e < maxExp } // smallFloat reports whether x would lead to "reasonably"-sized fraction // if converted to a *big.Rat. func smallFloat(x *big.Float) bool { if x.IsInf() { return false } e := x.MantExp(nil) return -maxExp < e && e < maxExp }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/strconv/atof.go
mantissa >>= 1 exp++ } } if mantissa>>flt.mantbits == 0 { // Denormal or zero. exp = flt.bias } var err error if exp > maxExp { // infinity and range error mantissa = 1 << flt.mantbits exp = maxExp + 1 err = rangeError(fnParseFloat, s) } bits := mantissa & (1<<flt.mantbits - 1) bits |= uint64((exp-flt.bias)&(1<<flt.expbits-1)) << flt.mantbits if neg {
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/math/big/bits_test.go
x.SetBit(x, badj, 0) badj++ } x.SetBit(x, badj, 1) } // create corresponding float z := new(Float).SetInt(x) // normalized if e := int64(z.exp) + int64(min); MinExp <= e && e <= MaxExp { z.exp = int32(e) } else { // this should never happen for our test cases panic("exponent out of range") } return z } func TestFromBits(t *testing.T) { for _, test := range []struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.1K bytes - Viewed (0) -
src/math/big/floatconv.go
fallthrough // see fallthrough above case 2: exp2 += exp default: panic("unexpected exponent base") } // exp consumed - not needed anymore // apply 2**exp2 if MinExp <= exp2 && exp2 <= MaxExp { z.prec = prec z.form = finite z.exp = int32(exp2) f = z } else { err = fmt.Errorf("exponent overflow") return } if exp5 == 0 { // no decimal exponent contribution
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 8.3K bytes - Viewed (0) -
src/math/big/float.go
const debugFloat = false // enable for debugging // A nonzero finite Float represents a multi-precision floating point number // // sign × mantissa × 2**exponent // // with 0.5 <= mantissa < 1.0, and MinExp <= exponent <= MaxExp. // A Float may also be zero (+0, -0) or infinite (+Inf, -Inf). // All Floats are ordered, and the ordering of two Floats x and y // is defined by x.Cmp(y). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/math/big/float_test.go
{"+Inf", -1234, "+Inf"}, {"-Inf", -1234, "-Inf"}, {"0", MinExp, "0"}, {"0.25", MinExp, "+0"}, // exponent underflow {"-0.25", MinExp, "-0"}, // exponent underflow {"1", MaxExp, "+Inf"}, // exponent overflow {"2", MaxExp - 1, "+Inf"}, // exponent overflow {"0.75", 1, "1.5"}, {"0.5", 11, "1024"}, {"-0.5", -2, "-0.125"}, {"32", 5, "1024"}, {"1024", -10, "1"}, } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 51.9K bytes - Viewed (0) -
api/go1.5.txt
pkg math/big, const AwayFromZero RoundingMode pkg math/big, const Below = -1 pkg math/big, const Below Accuracy pkg math/big, const Exact = 0 pkg math/big, const Exact Accuracy pkg math/big, const MaxExp = 2147483647 pkg math/big, const MaxExp ideal-int pkg math/big, const MaxPrec = 4294967295 pkg math/big, const MaxPrec ideal-int pkg math/big, const MinExp = -2147483648 pkg math/big, const MinExp ideal-int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"AwayFromZero", Const, 5}, {"Below", Const, 5}, {"ErrNaN", Type, 5}, {"Exact", Const, 5}, {"Float", Type, 5}, {"Int", Type, 0}, {"Jacobi", Func, 5}, {"MaxBase", Const, 0}, {"MaxExp", Const, 5}, {"MaxPrec", Const, 5}, {"MinExp", Const, 5}, {"NewFloat", Func, 5}, {"NewInt", Func, 0}, {"NewRat", Func, 0}, {"ParseFloat", Func, 5}, {"Rat", Type, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)