How to correctly pass a float from C# to C++ (dll)
- by RavelT
I'm getting huge differences when I pass a float from C# to C++.
I'm passing a dynamic float wich changes over time.
With a debuger I get this:
c++ lonVel -0.036019072 float
c# lonVel -0.029392920 float
I did set my MSVC++2010 floating point model to /fp:fast wich should be the standard in .NET if I'm not mistaken, but this didnt help.…