Lines Matching refs:Format
18 // to the given format and precision prec. The format is one of:
33 // If format is a different character, Text returns a "%" followed by the
34 // unrecognized format character.
42 // The prec value is ignored for the 'b' or 'p' format.
43 func (x *Float) Text(format byte, prec int) string {
48 return string(x.Append(make([]byte, 0, cap), format, prec))
52 // (String must be called explicitly, Float.Format does not support %s verb.)
84 // 3) read digits out and format
124 // 3) read digits out and format
131 // trim trailing fractional zeros in %e format
156 // unknown format
305 // fmtB appends the string of x in the format mantissa "p" exponent
339 // fmtP appends the string of x in the format "0x." mantissa "p" exponent
381 // Format implements fmt.Formatter. It accepts all the regular
384 // interpretation of 'p'. The 'v' format is handled like 'g'.
385 // Format also supports specification of the minimum precision
386 // in digits, the output field width, as well as the format flags
390 func (x *Float) Format(s fmt.State, format rune) {
396 switch format {
401 format = 'f'
404 format = 'g'
411 fmt.Fprintf(s, "%%!%c(*big.Float=%s)", format, x.String())
415 buf = x.Append(buf, byte(format), prec)