Subj : Re: Any help on why? To : borland.public.cpp.borlandcpp From : waking Date : Wed Jul 07 2004 05:01 am On Tue, 6 Jul 2004 20:58:05 -0400, "Stan DeGroff" wrote: >... by putting in some printf statements to aid in debug, That prints the >variable "xresult" resulted in printing 0x0000. However the variable >"result" printed ok. Wrong type specifier in the printf(). > printf("%d %X, %X\n", i, xresult, result); %X is used with integers. Use %f with doubles. Did you type this in or copy & paste? This line looks odd: > xresult = double va_arg(arglist, double); It should be a typecast: xresult = (double) va_arg(arglist, double); -- Wayne A. King (waking@idirect.com, Wayne_A_King@compuserve.com) .