Very very large number

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anybody know how to force visual to use a number this is around 1000 digits long and 64 bit floating point. I am a beginner in programing.
 
Joshco said:
Does anybody know how to force visual to use a number
this is around 1000 digits long and 64 bit floating point.
Yes.

I am a beginner in programing.

Oh boy. :-)

VC++ never uses more than 64 bits to represent numbers. You can delare a 64
bit integer like so

__int64 x;

x though, will have less than two dozen decimal digist.

You can declare floating point numbers like so:

double y;

64 bits will be used to contain y's value, around 53 or so will be used for
the "mantissa", the rest for a sign and an exponent. Doubles exist in a
wider range, but most numbers can not be expressed exactly.

Often when people need such large numbers as you want, the goal has to do
with cryptography. There are a number of libraries crypto available. You
should be able to google for them. This page may be helpful

http://www.csc.fi/math_topics/Mail/FAQ/msg00015.html

Regards,
Will
 
Back
Top