From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ca933b3cddad4709,start X-Google-Attributes: gid1164f8,public From: harley@pauillac.inria.fr (Robert Harley) Subject: pow() bug? Date: 1997/07/22 Message-ID: <5r229c$3ff@news-rocq.inria.fr>#1/1 X-Deja-AN: 258113151 Organization: I.N.R.I.A Rocquencourt Newsgroups: comp.sys.dec Any truth to the following rumour from http://www.infoworld.com/cgi-bin/displayNew.pl?/rcringe/rcringe.htm ??? ------------------------------------------------------------------------------ Alpha waves Elsewhere on Wall Street, a trader felt a tickle in his belly when he noticed that the price of a particular bond was showing up differently on two different computers, both Digital Alphas. Fearing a bug in the most recent release of his software, he stepped through the code and discovered that the pow() function was returning different answers on the two machines. Oddly enough, the machine with the newly revved motherboard was churning out errant numbers. Test your Alpha thusly: Try pow(1.234567, 7.654321). If you don't get 5.017, call Digital tech support. ------------------------------------------------------------------------------ I haven't found any problems with Linux + gcc or Digital Unix + gcc/cc/cc.alt even with switches for intrinsic pow() on a beta compiler that some nice people at DEC sent me. So does anybody know examples where the bug occurs? Is it on NT or what? -- Rob. .-. Robert.Harley@inria.fr .-. / \ .-. .-. / \ / \ / \ .-. _ .-. / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / `-' `-' \ / \ / \ \ / `-' `-' \ / `-' Linux - 500MHz Alpha - 256MB SDRAM `-'