C++ / C# differences with float and double
问题 We are converting a C++ math library to C#. The library mixes the use of floats and doubles (casting between them sometimes) and we are trying to do the same, in order to get the exact same results in C# that we had in C++ but it is proving to be very difficult if not impossible. I think the problem is one or more of the following, but I am not an expert: Converting floats to double and double to floats is causing unpredictable results and done differently in C++ and C# C++ and C# handle