Clarify documentation of precision in format specs
* doc/lispref/strings.texi (Formatting Strings): Be less definitive wrt what precision means in format specs other than floating-point, %s and %S. (Bug#24314)
This commit is contained in:
parent
88a5052579
commit
80a7f8be7b
1 changed files with 3 additions and 2 deletions
|
@ -1052,8 +1052,9 @@ precision specifies how many decimal places to show; if zero, the
|
||||||
decimal-point itself is also omitted. For @samp{%s} and @samp{%S},
|
decimal-point itself is also omitted. For @samp{%s} and @samp{%S},
|
||||||
the precision truncates the string to the given width, so @samp{%.3s}
|
the precision truncates the string to the given width, so @samp{%.3s}
|
||||||
shows only the first three characters of the representation for
|
shows only the first three characters of the representation for
|
||||||
@var{object}. Precision has no effect for other specification
|
@var{object}. For other specification characters, the effect of
|
||||||
characters.
|
precision is what the local library functions of the @code{printf}
|
||||||
|
family produce.
|
||||||
|
|
||||||
@node Case Conversion
|
@node Case Conversion
|
||||||
@section Case Conversion in Lisp
|
@section Case Conversion in Lisp
|
||||||
|
|
Loading…
Add table
Reference in a new issue