Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pegasus.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!houxm!hogpc!pegasus!mzal From: mzal@pegasus.UUCP Newsgroups: net.lang.c Subject: C and BCD Message-ID: <1911@pegasus.UUCP> Date: Thu, 15-Nov-84 10:24:20 EST Article-I.D.: pegasus.1911 Posted: Thu Nov 15 10:24:20 1984 Date-Received: Fri, 16-Nov-84 05:10:49 EST Organization: AT&T Information Systems, Lincroft NJ Lines: 14 If C was intended as a systems programming language, then it only seems fair that it should be able to access all functions of the system, including BCD on those machines which support it. How a variable declared as BCD should be handled on non-BCD machines is an issue which could be left to the implementer. Alternatively, we could just say that all BCD variables are of type int on non-BCD machines. I know of no standards saying that just because something is declared char or int or double that it needs to be stored in some special way. IndeedGi in all versions of C which run on a DEC-20 (that I have seen), chars, ints, longs, and doubles are all 36 bit quantaties. -- Mike^Z [allegra!, ihnp4!] pegasus!mzal Zaleski@Rutgers