[General algorithms] custom IEEE-float toString
Posted: Thu 07 Jun, 2007 6:47 pm
I know you can get decimal digits with log10 tricks, but log10 isn't exactly a fast operation..
Is there any way to make a (formatted) string out of an IEEE float/double without using a log10 trick? If so, how does it work?
(and please don't come up with a C function, I know sprintf would do fine but I really need a general algorithm rather than C-only)
Is there any way to make a (formatted) string out of an IEEE float/double without using a log10 trick? If so, how does it work?
(and please don't come up with a C function, I know sprintf would do fine but I really need a general algorithm rather than C-only)