Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!ut-ngp!kjm From: kjm@ut-ngp.UUCP Newsgroups: comp.lang.c Subject: Negative zero on Cyber 170's. Message-ID: <4453@ut-ngp.UUCP> Date: Fri, 19-Dec-86 09:11:53 EST Article-I.D.: ut-ngp.4453 Posted: Fri Dec 19 09:11:53 1986 Date-Received: Sat, 20-Dec-86 00:17:06 EST References: <690001@hplsla.HP.COM> Organization: UTexas Computation Center, Austin, Texas Lines: 19 [] > Try evaluating (unsigned) -1 on a one's complement machine! A word >containing all ones in such a machine (e.g. CDC Cyber machines) is >taken to be "negative zero", which is really an illegal representation. > >[Ben Mejia] Nonsense. Negative zero is a perfectly good number on Cybers, and, I suspect, on any other 1's complement machine. It is not an illegal operand, although it can behave in subtly different ways than positive zero. -- The above viewpoints are mine. They are unrelated to those of anyone else, including my cat and my employer. Kenneth J. Montgomery "Shredder-of-hapless-smurfs" kjm@ngp.{ARPA, UTEXAS.EDU, CC.UTEXAS.EDU} [Old, New, and Very New Internet] Coming soon: ccaj001@dinosaur.CC.UTEXAS.EDU [Dual Cyber 170]