Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!xanth!mcnc!decvax.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!diamond From: diamond@tkou02.enet.dec.com (diamond@tkovoa) Newsgroups: comp.std.c Subject: Re: Questions about NCEG Message-ID: <1762@tkou02.enet.dec.com> Date: 4 Jun 90 01:17:34 GMT References: <3094@goanna.cs.rmit.oz.au> <1990May29.193451.6533@twinsun.com> <15576@bfmny0.BFM.COM> <1017@s6.Morgan.COM> Reply-To: diamond@tkou02.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 24 In article <1017@s6.Morgan.COM> amull@Morgan.COM (Andrew P. Mullhaupt) writes: |In article <15576@bfmny0.BFM.COM>, tneff@bfmny0.BFM.COM (Tom Neff) writes: |||"If the scaled value is in the range of representable values (for its |||type) the result is either the nearest representable value, or the |||larger or smaller representable value immediately adjacent to the |||nearest representable value, chosen in an implementation-defined manner." ||Does anyone else think this word choice is strange? |It looks to me like the standard (bless its soul) is making provision |for stable rounding, (see also banker's rounding). See Knuth for |details. In fact most numerical engineers prefer stable rounding, in most cases (i.e. not just bankers). Unfortunately various other programming languages and various other sorts of standards make this difficult. Unfortunately, C errs in the opposite direction. It would have been better to say nothing about precision (as is done for arithmetic and fprintf) than to encourage excessive carelessness. The existing wording really ought to be changed one way or another by the interpretation committee. -- Norman Diamond, Nihon DEC diamond@tkou02.enet.dec.com Proposed group comp.networks.load-reduction: send your "yes" vote to /dev/null.