cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/30/00:24:08

From: Mark Levis <mlevis AT voyager DOT net>
Newsgroups: comp.lang.c,comp.os.msdos.djgpp
Subject: Re: having trouble with long numbers
Date: Tue, 29 Jul 1997 18:33:08 -0400
Organization: Voyager Information Networks, Inc.
Lines: 16
Message-ID: <33DE6FA3.460B59E@voyager.net>
References: <01bc9c51$0ceeec80$78ed1fcc AT darkstar>
NNTP-Posting-Host: 207.74.97.95
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michèle C. Dupré wrote:
>>I want to be able to have more than 10 digits print out (if the age
were
>>10,000 years for example).
>>I am new to C (and programming in general) and teaching myself, so any

>>criticism will be appreciated.

Use a double. It will have precision up to 14 digits. An int will only
handle number from
-32767 to 32768.
unsigned int 0 65535




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019