Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site elsie.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!rlgvax!cvl!elsie!mark From: mark@elsie.UUCP Newsgroups: net.lang.c Subject: Re: Numerical C Message-ID: <882@elsie.UUCP> Date: Fri, 27-Apr-84 11:36:12 EST Article-I.D.: elsie.882 Posted: Fri Apr 27 11:36:12 1984 Date-Received: Sat, 28-Apr-84 10:17:19 EST References: <3000022@uokvax.UUCP> Organization: NIH-LEC, Bethesda, MD Lines: 27 <> >>I would not use C as a numerical language, because of the way it promotes >>float to double with reckless abandon. I can only assume that someone had >>a very touching faith in double precision when making that design decision; >>it's a major loss, and I hope that the ANSI standard gets rid of it. At the recent UNIFORM (DC) meeting it was indicated that the double-precision only feature of C would *not* be part of the ANSI standard. Those of us with 32 bit machines and numerical problems will be glad to here that, though it will be many years befor all compliers will adhere to the standard. BTW: What is the origin of the double-precision only nature of C? I've heard three differing, but non-conflicting reasons: 1.) PDP-11's did all floating point calculations in double (is this true?) anyway, so why not. 2.) C was written as a systems language which required little little use of floats, so they were added only as an afterthought. 3.) The compilers are much easier to write if one doesn't have to worry about two or more types of float. Do any of the old timers out there know the correct answer(s). -- Mark J. Miller NIH/NCI/DCE/LEC UUCP: decvax!harpo!seismo!rlgvax!cvl!elsie!mark Phone: (301) 496-5688