type math/big.Rat
66 uses
math/big (current package)
float.go#L616: func (z *Float) SetRat(x *Rat) *Float {
float.go#L1130: func (x *Float) Rat(z *Rat) (*Rat, Accuracy) {
float.go#L1136: z = new(Rat)
rat.go#L23: type Rat struct {
rat.go#L33: func NewRat(a, b int64) *Rat {
rat.go#L34: return new(Rat).SetFrac64(a, b)
rat.go#L39: func (z *Rat) SetFloat64(f float64) *Rat {
rat.go#L273: func (x *Rat) Float32() (f float32, exact bool) {
rat.go#L289: func (x *Rat) Float64() (f float64, exact bool) {
rat.go#L303: func (z *Rat) SetFrac(a, b *Int) *Rat {
rat.go#L319: func (z *Rat) SetFrac64(a, b int64) *Rat {
rat.go#L333: func (z *Rat) SetInt(x *Int) *Rat {
rat.go#L340: func (z *Rat) SetInt64(x int64) *Rat {
rat.go#L347: func (z *Rat) SetUint64(x uint64) *Rat {
rat.go#L354: func (z *Rat) Set(x *Rat) *Rat {
rat.go#L366: func (z *Rat) Abs(x *Rat) *Rat {
rat.go#L373: func (z *Rat) Neg(x *Rat) *Rat {
rat.go#L381: func (z *Rat) Inv(x *Rat) *Rat {
rat.go#L396: func (x *Rat) Sign() int {
rat.go#L401: func (x *Rat) IsInt() bool {
rat.go#L409: func (x *Rat) Num() *Int {
rat.go#L420: func (x *Rat) Denom() *Int {
rat.go#L431: func (z *Rat) norm() *Rat {
rat.go#L486: func (x *Rat) Cmp(y *Rat) int {
rat.go#L494: func (z *Rat) Add(x, y *Rat) *Rat {
rat.go#L504: func (z *Rat) Sub(x, y *Rat) *Rat {
rat.go#L514: func (z *Rat) Mul(x, y *Rat) *Rat {
rat.go#L533: func (z *Rat) Quo(x, y *Rat) *Rat {
ratconv.go#L21: var ratZero Rat
ratconv.go#L26: func (z *Rat) Scan(s fmt.ScanState, ch rune) error {
ratconv.go#L57: func (z *Rat) SetString(s string) (*Rat, bool) {
ratconv.go#L295: func (x *Rat) String() string {
ratconv.go#L300: func (x *Rat) marshal() []byte {
ratconv.go#L314: func (x *Rat) RatString() string {
ratconv.go#L324: func (x *Rat) FloatString(prec int) string {
ratmarsh.go#L19: func (x *Rat) GobEncode() ([]byte, error) {
ratmarsh.go#L42: func (z *Rat) GobDecode(buf []byte) error {
ratmarsh.go#L45: *z = Rat{}
ratmarsh.go#L61: func (x *Rat) MarshalText() (text []byte, err error) {
ratmarsh.go#L69: func (z *Rat) UnmarshalText(text []byte) error {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |