Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!seismo!brl-adm!adm!PEPRBV%CFAAMP.BITNET@wiscvm.wisc.edu From: PEPRBV%CFAAMP.BITNET@wiscvm.wisc.edu Newsgroups: comp.lang.c Subject: floating point == Message-ID: <6639@brl-adm.ARPA> Date: Wed, 1-Apr-87 11:59:47 EST Article-I.D.: brl-adm.6639 Posted: Wed Apr 1 11:59:47 1987 Date-Received: Sat, 4-Apr-87 07:20:14 EST Sender: news@brl-adm.ARPA Lines: 13 Vincent Manis writes about an old Univac Fortran compiler: >>This compiler would generate a warning when you compared >>floating point numbers for equality (or non-equality). and suggests that C compilers could do the same thing. I used the same compiler, and the option to turn off this warning was only added when users complained about it. It's a good idea to have such an option, but in some environments you need to be able to turn it off so that other error messages don't get lost in the midst of ignorable warnings. I also don't think that any optional warning a compiler can produce should be considered a violation of the standard.