diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-07-16 16:02:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-07-16 16:02:41 -0700 |
commit | 0359aa22e83881d7686144145fe42920fe943fa0 (patch) | |
tree | bdc828dd40d1b9ccace99ec130f5260f6082ca2b /eval.h | |
parent | d83e611d58441f546babd1d742926c191d416e58 (diff) | |
download | txr-0359aa22e83881d7686144145fe42920fe943fa0.tar.gz txr-0359aa22e83881d7686144145fe42920fe943fa0.tar.bz2 txr-0359aa22e83881d7686144145fe42920fe943fa0.zip |
format: support leading zero printing for floats.
For a floating-point argument, the following behavior
is supported by the ~a, ~s and ~f format directives:
if the precision has a leading zero, then leading zeros
are added, up to one less than the field width.
* stream.c (formatv): Set the precision to one less than
the field width when rendering floats, rather than to
zero. The output_num code takes the precision as the cue
for padding zeros.
* txr.1: Updated format documentation, and clarified
a few things also.
Diffstat (limited to 'eval.h')
0 files changed, 0 insertions, 0 deletions