Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!mcnc!rutgers!ames!ptsfa!ihnp4!cuae2!killer!robertl
From: robertl@killer.UUCP (Robert Lord)
Newsgroups: comp.lang.c
Subject: Big numbers in C?
Message-ID: <1192@killer.UUCP>
Date: Sun, 26-Jul-87 15:44:23 EDT
Article-I.D.: killer.1192
Posted: Sun Jul 26 15:44:23 1987
Date-Received: Tue, 28-Jul-87 02:25:20 EDT
Organization: The Unix(tm) Connection, Dallas, Texas
Lines: 20
Keywords: big numbers

I was wondering....How do I use large numbers (over 32000) in C?  I know about
float type, but that give it in wierd numbers.  I need numbers in the hundreds
of millions, and I need them in real format. (i.e. 100000000), not float
format.  If there a little script that could change float to real?

Also, I am having a little trouble with this statement:

strtol(data.number);

Where:  data.number[1] == 5
        data.number[2] == 7  /*Or whatever...Just examples*/
        data.number[3] == \0

Is there a way to convert this string to an numerical value?  The reason I
have to have it like this is because I need to only allow 8 characters of
input.

           Thanks in advance,
                          Robert Lord
                            ..!ihnp4!killer!robertl