fortran to C converter
John Woods
john at frog.UUCP
Wed Apr 26 10:04:00 AEST 1989
In article <8050 at boring.cwi.nl>, dik at cwi.nl (Dik T. Winter) writes:
> In article <1989Apr24.172747.993 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) writes:
> > In article <12247 at lanl.gov> jlg at lanl.gov (Jim Giles) writes:
> > >On the Cray, doubles have 28 digits of precision, but it takes 50 (that's
> > >right - FIFTY) time as long to compute with doubles as with singles.
> > Given the pervasive nature of double in C code, sounds like Cray made a bad
> > decision (or an interim one).
> Given that Cray's choice predates C, this sounds a bit strange. Considering
> K&R and Ansi C, I would say that K&R made a bad decision (and clearly an
> interim one).
Cray made a bad choice of assigning the longer format to the "double" keyword.
Having "float" and "double" be identical is a perfectly valid C implementation
(as Henry said). K&R made a mathematician's choice, not the choice of
FORTRAN jocks who have gotten used to the vagaries of hardware and who have
made a virtue of hardship :-).
--
John Woods, Charles River Data Systems, Framingham MA, (508) 626-1101
...!decvax!frog!john, john at frog.UUCP, ...!mit-eddie!jfw, jfw at eddie.mit.edu
More information about the Comp.lang.c
mailing list