[nem-en] Formatting strings in printf-style functions

Kamil Skalski nazgul at nemerle.org
Thu Sep 9 00:32:44 CEST 2004


----- Original Message ----- 
From: "Michal Moskal" <malekith at pld-linux.org>
To: <devel-en at nemerle.org>
Sent: Thursday, September 09, 2004 12:24 AM
Subject: Re: [nem-en] Formatting strings in printf-style functions


> 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?

I ment, that in .Net world
float ---> double
double ---> decimal

But I will change %f to float and %lf to double

>
> -- 
> : 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?
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>





More information about the devel-en mailing list