G
Gernot Frisch
Hi,
I want to represent a double in char* as accurate as possible, but as
short as possible:
double char*
10000 1E5
1000.00123 1000.00123
....
How can I archive this?
%.10f prints too much, and %.10g is too inaccurate.
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
I want to represent a double in char* as accurate as possible, but as
short as possible:
double char*
10000 1E5
1000.00123 1000.00123
....
How can I archive this?
%.10f prints too much, and %.10g is too inaccurate.
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com