math/big.Float.SetPrec (method)
6 uses
math/big (current package)
float.go#L164: func (z *Float) SetPrec(prec uint) *Float {
floatconv.go#L141: p := new(Float).SetPrec(z.Prec() + 64) // use more bits for p -- TODO(gri) what is the right number?
floatconv.go#L201: f := new(Float).SetPrec(z.Prec() + 64).SetUint64(5)
floatconv.go#L288: return new(Float).SetPrec(prec).SetMode(mode).Parse(s, base)
floatmarsh.go#L99: z.SetPrec(uint(oldPrec))
ftoa.go#L377: x = new(Float).SetPrec(n).SetMode(x.mode).Set(x)
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |