WithPrecision returns a copy of c but with the specified precision.
(p uint32)
| 72 | |
| 73 | // WithPrecision returns a copy of c but with the specified precision. |
| 74 | func (c *Context) WithPrecision(p uint32) *Context { |
| 75 | r := new(Context) |
| 76 | *r = *c |
| 77 | r.Precision = p |
| 78 | return r |
| 79 | } |
| 80 | |
| 81 | // goError converts flags into an error based on c.Traps. |
| 82 | //gcassert:inline |
no outgoing calls