Mail Archives: djgpp-workers/1996/07/30/22:14:34
> New idea - #define HIGH_PRECSION_IO before including stdio.h, and it
> does the appropriate defines? (printf/scanf/etc)
If we did this, we'd have to comply with POSIX namespace rules for
"feature macros". However, I prefer the "better function in libm"
solution, since not everyone #include's stdio.h just to get printf.
> Why not just bloat libm or create a new library to provide this functionality
> instead? I'm not sure even high precision numerical simulations need
> printf to be that accurate in most cases. I may need it in the matrix
> invert, but I don't care if the answers are different in th 15th decimal.
This is one of the proposed solutions. libc's printf will still
support long doubles, but will simply cast them to double and use the
existing double code.
- Raw text -