- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for rat (0.03 sec)
-
src/math/big/doc.go
The following numeric types are supported: Int signed integers Rat rational numbers Float floating-point numbers The zero value for an [Int], [Rat], or [Float] correspond to 0. Thus, new values can be declared in the usual ways and denote 0 without further initialization: var x Int // &x is an *Int of value 0 var r = &Rat{} // r is a *Rat of value 0 y := new(Float) // y is a *Float of value 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 3.8K bytes - Viewed (0) -
src/math/big/ratmarsh.go
} // GobDecode implements the [encoding/gob.GobDecoder] interface. func (z *Rat) GobDecode(buf []byte) error { if len(buf) == 0 { // Other side sent a nil or default value. *z = Rat{} return nil } if len(buf) < 5 { return errors.New("Rat.GobDecode: buffer too small") } b := buf[0] if b>>1 != ratGobVersion { return fmt.Errorf("Rat.GobDecode: encoding version %d not supported", b>>1) } const j = 1 + 4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:31:58 UTC 2024 - 2.2K bytes - Viewed (0) -
src/math/big/ratmarsh_test.go
for _, test := range encodingTests { medium.Reset() // empty buffer for each test case (in case of failures) var tx Rat tx.SetString(test + ".14159265") if err := enc.Encode(&tx); err != nil { t.Errorf("encoding of %s failed: %s", &tx, err) continue } var rx Rat if err := dec.Decode(&rx); err != nil { t.Errorf("decoding of %s failed: %s", &tx, err) continue } if rx.Cmp(&tx) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 20:20:16 UTC 2022 - 3.3K bytes - Viewed (0) -
pom.xml
<phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <version>0.14</version> <executions> <execution> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution>
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun May 26 04:00:03 UTC 2024 - 9.3K bytes - Viewed (0) -
maven-bom/pom.xml
</configuration> </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <executions> <execution> <id>rat-check</id> <phase>none</phase> </execution> </executions> </plugin> </plugins> </build>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed May 22 14:07:09 UTC 2024 - 7.4K bytes - Viewed (0) -
src/cmd/compile/internal/ir/const.go
f := new(big.Float) f.SetPrec(ConstPrec) switch u := constant.Val(v).(type) { case int64: f.SetInt64(u) case *big.Int: f.SetInt(u) case *big.Float: f.Set(u) case *big.Rat: f.SetRat(u) default: base.Fatalf("unexpected: %v", u) } return f } // ConstOverflow reports whether constant value v is too large // to represent with type t.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0) -
api/go1.22.txt
pkg html/template, const ErrJSTemplate //deprecated #61619 pkg io, method (*SectionReader) Outer() (ReaderAt, int64, int64) #61870 pkg log/slog, func SetLogLoggerLevel(Level) Level #62418 pkg math/big, method (*Rat) FloatPrec() (int, bool) #50489 pkg math/rand/v2, func ExpFloat64() float64 #61716 pkg math/rand/v2, func Float32() float32 #61716 pkg math/rand/v2, func Float64() float64 #61716 pkg math/rand/v2, func Int() int #61716
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 20:54:27 UTC 2024 - 7.7K bytes - Viewed (0) -
src/internal/pkgbits/encoder.go
w.Code(ValBool) w.Bool(v) case string: w.Code(ValString) w.String(v) case int64: w.Code(ValInt64) w.Int64(v) case *big.Int: w.Code(ValBigInt) w.bigInt(v) case *big.Rat: w.Code(ValBigRat) w.bigInt(v.Num()) w.bigInt(v.Denom()) case *big.Float: w.Code(ValBigFloat) w.bigFloat(v) } } func (w *Encoder) bigInt(v *big.Int) { b := v.Bytes()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 10 23:26:58 UTC 2022 - 9.6K bytes - Viewed (0)