Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!mtune!codas!flnexus!heff From: heff@flnexus.ATT.COM (Paul K Heffner) Newsgroups: comp.sys.ibm.pc Subject: Turbo C division bug Message-ID: <105@flnexus.ATT.COM> Date: Thu, 18-Jun-87 11:41:53 EDT Article-I.D.: flnexus.105 Posted: Thu Jun 18 11:41:53 1987 Date-Received: Sun, 21-Jun-87 14:08:53 EDT Organization: AT&T-IS, Orlando, FL Lines: 17 A couple of people at our site have invested in Turbo C and seem generally pleased with the package as a really serious compiler (especially for the price). It does, however, seem to have a serious bug with the floating point division routines. If your program does division on two constants: float x; x = 5.0/4.0; The result will be as if the division was inverted (i.e x = 4.0/5.0) Spencer Katt commented on this in PC Week this week. If you're using Turbo C for serious programming, you should exercise caution if doing such calculations. (I assume Borland is working on a fix....) Paul Heffner, AT&T, Orlando