www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/02:16:30

From: isaacc AT flash DOT net
Newsgroups: comp.os.msdos.djgpp
Subject: LARGE numbers.
Date: Thu, 27 Aug 1998 06:16:36 GMT
Organization: Flashnet Communications, http://www.flash.net
Lines: 18
Message-ID: <1103_904198596@isaacc>
NNTP-Posting-Host: p97.utc2.dialup.tus1.flash.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I realize that thie ansewer to this question is probibly a very simple one, however I will ask
it any way, in hopes that someone could help me out.

I want to store the following number (25834242042) as an int, I declare it as usual:

int var = 258342042;

yet the number is obviouslu too large to store as an integer (even an unsigned one).
Subsequently I try to store it as both 'float' and 'double' - yet they wont even hold a number of 
this size!

What can I do to get a larger varable declaration???

Please help.

                                                            Thanx,
                                                                    Isaac
                                                               isaacc AT flash DOT net

- Raw text -


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