14,325,629 members

# C#

 Re: How to replace every different char with another given char OriginalGriff26-May-19 22:22 OriginalGriff 26-May-19 22:22
 Re: How to replace every different char with another given char BillWoodruff26-May-19 22:55 BillWoodruff 26-May-19 22:55
 Re: How to replace every different char with another given char Member 798912229-May-19 4:52 Member 7989122 29-May-19 4:52
 Re: How to replace every different char with another given char OriginalGriff29-May-19 5:08 OriginalGriff 29-May-19 5:08
 Re: How to replace every different char with another given char lmoelleb26-May-19 8:40 lmoelleb 26-May-19 8:40
 Re: How to replace every different char with another given char Luc Pattyn25-May-19 19:16 Luc Pattyn 25-May-19 19:16
 Re: How to replace every different char with another given char Member 798912229-May-19 5:01 Member 7989122 29-May-19 5:01
 Floating Point Calculations - c# vs. c++ 0x01AA22-May-19 6:50 0x01AA 22-May-19 6:50
 Dear experts I'm migrating some stuff from c++ (Borland Builder) to c#. While comparing the calculations between the two implementations I found among others a.) c++: pow(0.1, 3.0) results in 0.001 b.) c#: Math.Pow(0.1, 3.0) results in 0.0010000000000000002 Ok so far so good. "power" is not an fpu instruction and therefore I can imagine that the two results are slightly different, because of maybe different implementation of the "power" function. Nevertheless I made the following experiment c++: double test= 0.1 * 0.1 * 0.1 which results in 0.001 c#: double test= 0.1 * 0.1 * 0.1 which results again in 0.0010000000000000002 Surprising for me The latter now is something surprising -at least for me- because I'm assuming that both (c++ and c#) will use the fpu for multiplications. I googled a lot for this, but I'm not able to find an explanation. Do you have an idea? Thank you very much in advance for your comments on this. Regards  Btw: I also tried `_clearfp` and `_fpreset` for c#, but results remain the same. It does not solve my Problem, but it answers my question
 Re: Floating Point Calculations - c# vs. c++ harold aptroot22-May-19 7:00 harold aptroot 22-May-19 7:00
 Re: Floating Point Calculations - c# vs. c++ 0x01AA22-May-19 7:24 0x01AA 22-May-19 7:24
 Re: Floating Point Calculations - c# vs. c++ CPallini22-May-19 23:01 CPallini 22-May-19 23:01
 Re: Floating Point Calculations - c# vs. c++ 0x01AA23-May-19 8:38 0x01AA 23-May-19 8:38
 Re: Floating Point Calculations - c# vs. c++ Member 798912229-May-19 5:21 Member 7989122 29-May-19 5:21
 Re: Floating Point Calculations - c# vs. c++ 0x01AA29-May-19 5:42 0x01AA 29-May-19 5:42
 Re: Floating Point Calculations - c# vs. c++ #realJSOP24-May-19 0:07 #realJSOP 24-May-19 0:07
 Re: Floating Point Calculations - c# vs. c++ 0x01AA24-May-19 5:40 0x01AA 24-May-19 5:40
 Python str.extract to c# (regex?) Member 1441807322-May-19 2:15 Member 14418073 22-May-19 2:15
 Re: Python str.extract to c# (regex?) Nathan Minier22-May-19 2:40 Nathan Minier 22-May-19 2:40
 Re: Python str.extract to c# (regex?) Member 1441807323-May-19 3:56 Member 14418073 23-May-19 3:56
 ComboBox not refreshing error. Khandkar Asif Hossain21-May-19 9:20 Khandkar Asif Hossain 21-May-19 9:20
 Re: ComboBox not refreshing error. Richard Deeming21-May-19 9:28 Richard Deeming 21-May-19 9:28
 Re: ComboBox not refreshing error. Khandkar Asif Hossain22-May-19 7:40 Khandkar Asif Hossain 22-May-19 7:40
 Re: ComboBox not refreshing error. Luc Pattyn21-May-19 9:36 Luc Pattyn 21-May-19 9:36
 Resize all controls on a user control or form automatically with changing of user control or form Member 1332584617-May-19 16:47 Member 13325846 17-May-19 16:47
 Re: Resize all controls on a user control or form automatically with changing of user control or form OriginalGriff17-May-19 19:26 OriginalGriff 17-May-19 19:26
 Last Visit: 14-Oct-19 3:03     Last Update: 14-Oct-19 3:03 Refresh « Prev1...40414243444546474849 Next »