summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-07-16 16:02:41 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-07-16 16:02:41 -0700
commit0359aa22e83881d7686144145fe42920fe943fa0 (patch)
treebdc828dd40d1b9ccace99ec130f5260f6082ca2b /regex.c
parentd83e611d58441f546babd1d742926c191d416e58 (diff)
downloadtxr-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 'regex.c')
0 files changed, 0 insertions, 0 deletions