]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add a float-to-ascii conversion function
authorWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 05:35:00 +0000 (07:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 08:48:17 +0000 (10:48 +0200)
commitae03d26eeab7443dca21214382efdbd9e360aa0d
tree6769524d341e3087d6d29bcd2a9891db25004b53
parent56d1d8dab0aed7f781486a34f1f47de4d0c3648f
MINOR: tools: add a float-to-ascii conversion function

We already had ultoa_r() and friends but nothing to emit inline floats.
This is now done with ftoa_r() and F2A/F2H. Note that the latter both use
the itoa_str[] as temporary storage and that the HTML format currently is
the exact same as the ASCII one. The trailing zeroes are always timmed so
these outputs are usable in user-visible output.
include/haproxy/tools.h
src/tools.c