Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site zuring.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!zuring!dik From: dik@zuring.UUCP (Dik T. Winter) Newsgroups: net.lang.c Subject: Re: Pointing Float, you turkey!!! Message-ID: <265@zuring.UUCP> Date: Fri, 20-Dec-85 22:19:25 EST Article-I.D.: zuring.265 Posted: Fri Dec 20 22:19:25 1985 Date-Received: Sun, 22-Dec-85 00:51:43 EST References: <707@brl-tgr.ARPA> <661@ttrdc.UUCP> Reply-To: dik@zuring.UUCP (Dik T. Winter) Organization: CWI, Amsterdam Lines: 21 Apparently-To: rnews@mcvax In article <661@ttrdc.UUCP> levy@ttrdc.UUCP (Daniel R. Levy) writes: (In a diatribe about english semantics about the word done) >I cannot say 'gag me with a spoon' to C, however, for doing this--IMPORTANT >DIFFERENCE!! C does not forbid this operation being implemented in single >which makes sense anyhow--doing it in double then throwing away the excess >precision in order to fit the result into the destination float variable gains >nothing in accuracy and loses much efficiency over an implementation in >single. Gag me with a spoon! On one of the machines I regularly work with it makes quite a difference whether a=a+1.0 is done in single or double precision (to be precise, this is a CDC Cyber 170 series). If a is only slightly more than -1.0, single and double precision operations will give different results. (Double will give correct results, yes, single not so.) So, do I want this to be done in double? NO. It takes about 6 (7, 8?) times as long in double! (Aaaah, what do you care about 625 nano-seconds?) -- dik t. winter, cwi, amsterdam, nederland UUCP: {seismo,decvax,philabs,okstate,garfield}!mcvax!dik