Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!ucsd!chem.ucsd.edu!tps From: tps@chem.ucsd.edu (Tom Stockfisch) Newsgroups: comp.lang.c Subject: Re: `char' parameters: a follow-up/summary ( Long - but worth it :-) ) Keywords: parameter, K&R, ANSI C, narrowing, widening, promotion Message-ID: <287@chem.ucsd.EDU> Date: 10 Sep 88 18:58:54 GMT References: <1626@se-sd.sandiego.ncr.com> <191@rocky8.rockefeller.edu> Reply-To: tps@chem.ucsd.edu (Tom Stockfisch) Organization: Chemistry Dept, UC San Diego Lines: 15 In article <191@rocky8.rockefeller.edu> edf@rocky2.rockefeller.edu (David MacKenzie) writes: >This is one of the big reasons that K&R C is not considered by some to >be as good as FORTRAN for floating-point work; you can't have a function >that takes a float or a char as an argument, which would be more >efficient if that's all the precision that you need. Every C compiler I've used has an option which disables default promotion of float to double. The "only" remaining problem is accessing single precision math library routines. -- || Tom Stockfisch, UCSD Chemistry tps@chem.ucsd.edu