Click here to Skip to main content
16,004,944 members
Home / Discussions / C#
   

C#

 
AnswerRe: Extracting strings to XML? Pin
Christian Graus30-Nov-04 14:00
protectorChristian Graus30-Nov-04 14:00 
Generalneed help with neural network design Pin
tom_dx30-Nov-04 13:27
tom_dx30-Nov-04 13:27 
QuestionHow to make an HttpWebRequest with multiple POST variables ? Pin
fickdb30-Nov-04 12:50
fickdb30-Nov-04 12:50 
AnswerRe: How to make an HttpWebRequest with multiple POST variables ? Pin
Daniel Turini30-Nov-04 21:44
Daniel Turini30-Nov-04 21:44 
QuestionSystem.Double.Parse not accurate? Pin
slylos30-Nov-04 10:11
slylos30-Nov-04 10:11 
AnswerRe: System.Double.Parse not accurate? Pin
Christian Graus30-Nov-04 10:40
protectorChristian Graus30-Nov-04 10:40 
GeneralRe: System.Double.Parse not accurate? Pin
slylos30-Nov-04 11:01
slylos30-Nov-04 11:01 
GeneralRe: System.Double.Parse not accurate? Pin
Dave Kreskowiak1-Dec-04 3:40
mveDave Kreskowiak1-Dec-04 3:40 
THe problem isn't with Parse. It's with how numbers are stored. You're using a division problem to generate a number which is infinitely long, 1.333333... A number like this is impossible to store accurately, so this is where your problem is created. In order to fix this, you'll have to round the results to the number of decimal places you need for accuracy. Also, use the Decimal type, not double. It's more accurate and all just about all the Math class methods support it directly with no conversions.

Math.Round[^] docs on MSDN.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

AnswerRe: System.Double.Parse not accurate? Pin
Daniel Turini30-Nov-04 21:41
Daniel Turini30-Nov-04 21:41 
GeneralODBC .NET and win 2000 Pin
Member 155577930-Nov-04 9:06
Member 155577930-Nov-04 9:06 
GeneralRe: ODBC .NET and win 2000 Pin
montu337730-Nov-04 19:07
montu337730-Nov-04 19:07 
GeneralADODB in c# Pin
tlepers30-Nov-04 8:21
tlepers30-Nov-04 8:21 
GeneralSpeech API & numeric values Pin
WoSch30-Nov-04 8:07
WoSch30-Nov-04 8:07 
Generalrequiredifvalidator Pin
ljhopkins30-Nov-04 6:22
ljhopkins30-Nov-04 6:22 
GeneralRe: requiredifvalidator Pin
Alex Korchemniy30-Nov-04 8:41
Alex Korchemniy30-Nov-04 8:41 
QuestionEmbedd EXE into MDI? Pin
Ngh5530-Nov-04 4:56
Ngh5530-Nov-04 4:56 
AnswerRe: Embedd EXE into MDI? Pin
Dave Kreskowiak30-Nov-04 5:27
mveDave Kreskowiak30-Nov-04 5:27 
GeneralRe: Embedd EXE into MDI? Pin
Ngh5530-Nov-04 5:40
Ngh5530-Nov-04 5:40 
GeneralTime out in application Pin
A T I F30-Nov-04 4:02
A T I F30-Nov-04 4:02 
GeneralRe: Time out in application Pin
Stefan Troschuetz30-Nov-04 4:45
Stefan Troschuetz30-Nov-04 4:45 
GeneralRe: Time out in application Pin
A T I F1-Dec-04 23:53
A T I F1-Dec-04 23:53 
GeneralRe: Time out in application Pin
Stefan Troschuetz2-Dec-04 0:55
Stefan Troschuetz2-Dec-04 0:55 
GeneralRe: Time out in application Pin
A T I F2-Dec-04 19:48
A T I F2-Dec-04 19:48 
GeneralRe: Time out in application Pin
A T I F2-Dec-04 19:49
A T I F2-Dec-04 19:49 
GeneralRe: Time out in application Pin
Stefan Troschuetz2-Dec-04 21:34
Stefan Troschuetz2-Dec-04 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.