Herb,
Unfortunately, you are using a number that can not be represented by
Decimal, and a number that is also large enough to loose precision when
stored in a double. Because of this, you will have to resort to something
else. Java had something like Number, or BigNumber, but .NET doesn't have
an equivalant. You will have to create a routine/class that can handle
this, as well as a representation for your number.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Herb Stevenson" <ta*******@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP11.phx.gbl...
Hello. I have a very large string reprentation of a number, for example
"1000001002003004005006007008009010". If I user Double.Parse, I get
something like 1.0000010020030041E+33 as my output. I need to do a mod
900 conversion on this long string value (i.e. loop thru the number
consistently dividing by 900). The exponential notation seems to be causing some
precision problems as I divide.
Is there a way to have the double represnted as the entire number?
Thank you
Herb