[ros-bugs] [Bug 4584] Fix some tests in the floating point part of sprintf
ReactOS.Bugzilla at www.reactos.org
ReactOS.Bugzilla at www.reactos.org
Sat Jun 6 15:58:51 CEST 2009
http://www.reactos.org/bugzilla/show_bug.cgi?id=4584
--- Comment #5 from hto <hto at dev.null> 2009-06-06 15:58:50 CET ---
(In reply to comment #4)
That code was taken from some old linux, perhaps it should be replaced by
something better.
int main(void)
{
int i[2] = { 0x7ae147ae, 0x3fefae14 };
wchar_t buf[10];
double *d = (double *) i;
swprintf(buf, L"%f", *d);
printf("%f -> %ls\n", *d, buf);
}
produces 0.990000 -> 000000.
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Ros-bugs
mailing list