[nem-en] Formatting strings in printf-style functions
Michal Moskal
malekith at pld-linux.org
Thu Sep 9 00:24:36 CEST 2004
On Tue, Sep 07, 2004 at 09:17:40PM +0200, Kamil Skalski wrote:
> Current support for formatting strings in Nemerle.IO.f/s//printf functions
> isn't rich (just basic types without precisions specifiers), but there is one
> issue, which probably should be changed.
>
> printf ("%f", 5.5) <--- parameter is expected to be of type double
>
> in original libc functions it is a float type, while double is specified by
> %lf
>
> Now we have to decide if we want %f == double, which is default floating point
> type in Nemerle and %lf == decimal (and no specifier for float) or change
> specification to something more C-conformant (could break some code).
>
> I opt for latter.
For me %f is float, %lf is double. Using something else is only creating
confusion.
But I guess I don't understand what has decimal (type, I assume?) here
to do?
--
: Michal Moskal :: http://www.kernel.pl/~malekith :: GCS !tv h e>+++ b++
: ::: Logic is a nice contrast to the Real World. :: UL++++$ C++ E--- a?
More information about the devel-en
mailing list