"Cris" <Cr**@discussio ns.microsoft.co mwrote in message
news:21******** *************** ***********@mic rosoft.com...
>I have a string representing a very large number that I need to increment
by 1.
Ocurs that when I try to
Convert.ToDoubl e("123456789012 345678901234567 890"),
the string representation of my double gives: 1.2345678901234 567E+29. But
I
need to full representation, without the exponent.
A double precision floating point number does not have sufficient precision
to store that number down to the last 1. You can use a System.Decimal for
numbers up to 79,228,162,514, 264,337,593,543 ,950,335. For full-precision
arithmetic on larger numbers, you will need to break them down yourself (and
do the carries), or use an arbitrary-precision arithmetic library.
David