How to convert a string to double with out lossing precission??
-
Hi, I have a string with value "111733394601234567094987654321" . Now i want to divide this with 636. I convert it to double , then im getting 1.1173339460123456E+29 . but these both values are differnt finally im getting wrong output. can anyone help me..... Thanks Prathap
-
Hi, I have a string with value "111733394601234567094987654321" . Now i want to divide this with 636. I convert it to double , then im getting 1.1173339460123456E+29 . but these both values are differnt finally im getting wrong output. can anyone help me..... Thanks Prathap
-
Hi, I have a string with value "111733394601234567094987654321" . Now i want to divide this with 636. I convert it to double , then im getting 1.1173339460123456E+29 . but these both values are differnt finally im getting wrong output. can anyone help me..... Thanks Prathap
The latest .NET 4.0 (and Visual Studio 2010) is in beta and offers a BitInteger class which would easily take care of your big integer division, yielding accurate quotient and remainder values. There also have been some articles on home-brew BigInteger classes here on CP (with varying functionality and quality). :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.