Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bytes question in C 1

Status
Not open for further replies.

lisalis99

Programmer
Jan 9, 2005
121
US
Quick Question!

How can I store a numeric value with 100 digits in C???

Thanks!!
 
Strictly speaking you can store a 100 digit number as a string. Whether this is any use is another matter. If you have a suitable compiler then the max of long long is 2^64 otherwise you are down to writing your own store and handling.

If you're really doing maths to 100 decimal place prcision then you must be doing something unusual.

Columb Healy
 
Columb: banking in a country with a bad inflation problem??!!

Lisalis99: if you can avoid it, don't even think about doing maths on a number stored as a string. It's easy to code but it'd run like thick treacle on a cold day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top