- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for ToPositiveInf (0.26 sec)
-
src/math/big/floatexample_test.go
operands := []float64{2.6, 2.5, 2.1, -2.1, -2.5, -2.6} fmt.Print(" x") for mode := big.ToNearestEven; mode <= big.ToPositiveInf; mode++ { fmt.Printf(" %s", mode) } fmt.Println() for _, f64 := range operands { fmt.Printf("%4g", f64) for mode := big.ToNearestEven; mode <= big.ToPositiveInf; mode++ { // sample operands above require 2 bits to represent mantissa
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 4.1K bytes - Viewed (0) -
src/math/big/roundingmode_string.go
// Re-run the stringer command to generate them again. var x [1]struct{} _ = x[ToNearestEven-0] _ = x[ToNearestAway-1] _ = x[ToZero-2] _ = x[AwayFromZero-3] _ = x[ToNegativeInf-4] _ = x[ToPositiveInf-5] } const _RoundingMode_name = "ToNearestEvenToNearestAwayToZeroAwayFromZeroToNegativeInfToPositiveInf" var _RoundingMode_index = [...]uint8{0, 13, 26, 32, 44, 57, 70} func (i RoundingMode) String() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:24:07 UTC 2023 - 819 bytes - Viewed (0) -
src/math/big/floatmarsh_test.go
for _, sign := range []string{"", "+", "-"} { for _, prec := range []uint{0, 1, 2, 10, 53, 64, 100, 1000} { for _, mode := range []RoundingMode{ToNearestEven, ToNearestAway, ToZero, AwayFromZero, ToNegativeInf, ToPositiveInf} { medium.Reset() // empty buffer for each test case (in case of failures) x := sign + test var tx Float _, _, err := tx.SetPrec(prec).SetMode(mode).Parse(x, 0) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 23 18:18:05 UTC 2023 - 4.5K bytes - Viewed (0) -
src/math/big/floatconv_test.go
{"8191.53125", ToNegativeInf, 53, 'x', 4, "0x1.fff8p+12"}, {"-8191.53125", ToNegativeInf, 53, 'x', 4, "-0x1.fff9p+12"}, {"8191.53125", ToPositiveInf, 53, 'x', 4, "0x1.fff9p+12"}, {"-8191.53125", ToPositiveInf, 53, 'x', 4, "-0x1.fff8p+12"}, // issue 34343 {"0x.8p-2147483648", ToNearestEven, 4, 'p', -1, "0x.8p-2147483648"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 24.3K bytes - Viewed (0) -
src/math/big/float_test.go
testFloatRound(t, x, a, prec, AwayFromZero) testFloatRound(t, x, z, prec, ToNegativeInf) testFloatRound(t, x, a, prec, ToPositiveInf) testFloatRound(t, -x, -a, prec, ToNegativeInf) testFloatRound(t, -x, -z, prec, ToPositiveInf) } } // TestFloatRound24 tests that rounding a float64 to 24 bits // matches IEEE 754 rounding to nearest when converting a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 51.9K bytes - Viewed (0) -
src/math/big/float.go
ToZero // == IEEE 754-2008 roundTowardZero AwayFromZero // no IEEE 754-2008 equivalent ToNegativeInf // == IEEE 754-2008 roundTowardNegative ToPositiveInf // == IEEE 754-2008 roundTowardPositive ) //go:generate stringer -type=RoundingMode // Accuracy describes the rounding error produced by the most recent
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
api/go1.5.txt
pkg math/big, const ToNearestEven = 0 pkg math/big, const ToNearestEven RoundingMode pkg math/big, const ToNegativeInf = 4 pkg math/big, const ToNegativeInf RoundingMode pkg math/big, const ToPositiveInf = 5 pkg math/big, const ToPositiveInf RoundingMode pkg math/big, const ToZero = 2 pkg math/big, const ToZero RoundingMode pkg math/big, func Jacobi(*Int, *Int) int pkg math/big, func NewFloat(float64) *Float
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
{"NewRat", Func, 0}, {"ParseFloat", Func, 5}, {"Rat", Type, 0}, {"RoundingMode", Type, 5}, {"ToNearestAway", Const, 5}, {"ToNearestEven", Const, 5}, {"ToNegativeInf", Const, 5}, {"ToPositiveInf", Const, 5}, {"ToZero", Const, 5}, {"Word", Type, 0}, }, "math/bits": { {"Add", Func, 12}, {"Add32", Func, 12}, {"Add64", Func, 12}, {"Div", Func, 12}, {"Div32", Func, 12},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)