summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/floatio.h
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2003-04-05 22:11:42 +0000
committerdas <das@FreeBSD.org>2003-04-05 22:11:42 +0000
commit541451f14d636efa300b5864f8431a30d00b170b (patch)
tree47fff2913fc79cfd3d0ece44875602b63a25ecab /lib/libc/stdio/floatio.h
parent2d9148b622967fe103f5945f10d5c6917368dec6 (diff)
downloadFreeBSD-src-541451f14d636efa300b5864f8431a30d00b170b.zip
FreeBSD-src-541451f14d636efa300b5864f8431a30d00b170b.tar.gz
Rework the floating point code in printf(). Significant changes:
- We used to round long double arguments to double. Now we print them properly. - Bugs involving '%F', corner cases of '#' and 'g' format specifiers, and the '.*' precision specifier have been fixed. - Added support for the "'" specifier to print thousands' grouping characters in a locale-dependent manner. - Implement the __vfprintf() side of hexadecimal floating point support. All that is still needed is a routine to convert the mantissa to hex digits one nibble at a time in the style of ultoa(). Reviewed by: silence on standards@
Diffstat (limited to 'lib/libc/stdio/floatio.h')
-rw-r--r--lib/libc/stdio/floatio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdio/floatio.h b/lib/libc/stdio/floatio.h
index 22fedcd..500cda2 100644
--- a/lib/libc/stdio/floatio.h
+++ b/lib/libc/stdio/floatio.h
@@ -52,3 +52,5 @@
#if LDBL_MAX_EXP > 999999
#error "floating point buffers too small"
#endif
+
+char *__ldtoa(long double *, int, int, int *, int *, char **);
OpenPOWER on IntegriCloud