Phil Carmody wrote:
>
> On Tue, 31 October 2000, Stefan Schroepfer wrote:
> > Hi,
> >
> > the f format specifier is for double arguments,
>
> They were double arguments already, as this is C. In C++ there is no such
> automatic promotion, and when you want to pass a float, you simply pass a
> float.
Automatic promotion in C: oh well I forgot that.
If no type promotion takes place you have to cast
these values to double. Both Linux and MSVC docs
state that the f format specifier is for double
values. Some implementation might process float
as well, but that's not standard.
scr
_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list
This archive was generated by hypermail version 2a22 on Fri Dec 1 08:00:05 2000 PST
Send any problems or questions about this archive to webmaster@alphalinux.org.