Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-unix!ubi From: ubi@sri-unix.UUCP Newsgroups: net.sources Subject: Re: u.c, a Unit conversion program (it does charts too) Message-ID: <2245@sri-unix.ARPA> Date: Tue, 28-Apr-87 16:29:14 EDT Article-I.D.: sri-unix.2245 Posted: Tue Apr 28 16:29:14 1987 Date-Received: Thu, 30-Apr-87 01:26:39 EDT References: <2416@ncoast.UUCP> Reply-To: ubi@sri-unix.UUCP (Ron Ueberschaer) Organization: SRI, Menlo Park, CA. Lines: 12 Keywords: double precision Greg forgot to do one thing: make his floating points double precision. This is somewhat annoying when you find that 1000 mils = .999994 inches, or that -40 degrees F = -39.99996 degrees C. To fix, simply use a global replace such as (for vi or ex): :%s/float/double/g and then change the %f tag of the scanf() in getnumber() to %F or %lf, whichever you prefer. A useful little program!