C Floating point arithmetic

Joseph S. D. Yao jsdy at hadron.UUCP
Wed Nov 27 17:55:05 AEST 1985


In article <706 at lasspvax.UUCP> garry%geology at cu-arpa.cornell.edu.arpa writes:
>Pet peeve:
>In an inauspicious moment, K&R specified "All floating-point arithmetic
>in C is done in double precision" (pg 41).

This is unsaid in ANSI C, as mentioned in the middle of an earlier
(long!) article.  Floats may be themselves even in the midst of
arithmetic ops and function passing.  May cause problems in loosely
written programs.

"Say what you mean ... is the whole of the law."
-- 

	Joe Yao		hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}



More information about the Comp.lang.c mailing list