473,412 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

How to code large integer constants

I currently need your sincere help...

I'm now going to run a program in C that executes large numbers that goes like this...

2^1000;
9.2345675432e999;

and iterations likewise...

loopCount = 200, 000, 000;
limit = 3^1000;

It just say "warning: integer constant is too large for 'long type', even if use 'long unsigned int' types...

What should I do?? Anyone...

(below is my attachment of my work (jpeg file)).. tnx
Attached Images
File Type: jpg CodeErrorIn_C.jpg (97.9 KB, 711 views)
Dec 8 '11 #1
1 2195
donbock
2,426 Expert 2GB
Maybe the GNU Multiple Precision Arithmetic Library (GMP) can help you.
Dec 8 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Scott Seidman | last post by:
I have a data file structure that I am consistently confined by. I'm considering alternatives, and a self-defining markup is one of them. The problem is that this file consists of some header...
0
by: ClauJones | last post by:
what implies in using a foreign key "replication code" or "integer long"? wat consume the lower amount of memory? wat is more efficient? wat should I use to larger database?
7
by: Nicholas | last post by:
How can I get the largest possible value of the Integer Constants and use it in the program for these types: 1. int 2. long 3. unsigned short Thanks
7
by: Jon Shemitz | last post by:
I was experimenting with implicit typing of integer constants, and found to my surprise that in MS C# 1.1 (VS.2003) you can write code like double Large = 18446744073709551615; This is quite...
42
by: yong | last post by:
Hi all I have an large integer in this format x1*256^5 + x2*256^4 + x3*256^3 + x4*256^2 + x5*256 + x6 now I must convert it to this format y1*900^4 + y2*900^3 + y3*900^2 + y4*900 + y5 x1-x5...
7
by: Gary Brown | last post by:
Hi, I have a whole bunch of integer constants that are best given in octal (PDP-1 opcodes). It makes a huge difference in readability and authenticity if these can be entered in octal. I...
5
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi I have two constant integers and when I try to compare their values, I get error: Operator '==' cannot be applied to operands of type ... Here is a cut down version of my code public...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.