Home | History | Annotate | Download | only in big

Lines Matching defs:String

5 // This file implements rat-to-string conversion functions.
34 if _, ok := z.SetString(string(tok)); !ok {
42 // optionally followed by an exponent. The entire string (not just a prefix)
45 func (z *Rat) SetString(s string) (*Rat, bool) {
61 // entire string must have been consumed
199 exp, err = strconv.ParseInt(string(digits), 10, 64)
203 // String returns a string representation of x in the form "a/b" (even if b == 1).
204 func (x *Rat) String() string {
205 return string(x.marshal())
208 // marshal implements String returning a slice of bytes
221 // RatString returns a string representation of x in the form "a/b" if b != 1,
223 func (x *Rat) RatString() string {
225 return x.a.String()
227 return x.String()
230 // FloatString returns a string representation of x in decimal form with prec
233 func (x *Rat) FloatString(prec int) string {
244 return string(buf)
282 return string(buf)