Graziano Servizi
2014-09-01 13:58:51 UTC
Aren't declared yet in std the
hexfloat
defaultfloat
C++11 manipulators?
It is planned to introduce them?
I ask this because the statement
std :: cout << 0x1.8p-1 << std :: endl;
is recognized by the 4.8.3 release of the gcc/g++ compiler and prints
out (correctly) 0.75 while the "opposite"
(which I argued could print 1.8p-1)
std :: cout << std :: hexfloat << 0.75 << std :: endl;
is considered erroneous: the compiler claims hexfloat being not declared
(all reasonable headers were been included).
Thanks
G. Servizi
hexfloat
defaultfloat
C++11 manipulators?
It is planned to introduce them?
I ask this because the statement
std :: cout << 0x1.8p-1 << std :: endl;
is recognized by the 4.8.3 release of the gcc/g++ compiler and prints
out (correctly) 0.75 while the "opposite"
(which I argued could print 1.8p-1)
std :: cout << std :: hexfloat << 0.75 << std :: endl;
is considered erroneous: the compiler claims hexfloat being not declared
(all reasonable headers were been included).
Thanks
G. Servizi