FloatToStrF() rounding up issue on the Delphi 10.4 side after Hydra integration

Greetings,

We have integrated a C# (.NET) class library WPF plugin project with our Delphi Sydney 10.4 desktop application using Hydra. This new feature integration is working as expected but we are facing some issues with our existing implementation.

When we call the C#(.NET) class object from the Delphi side using Hydra the FloatToStrF couldn’t round up the value properly. Here is an example:

Result := FloatToStrF(0.00042875, ffFixed, 11, 7)

The result value should be 0.0004288 but it returns 0.0004287 which is incorrect. If we don’t call the C# WPF plugin from the Delphi side or delete the plugin class library dll from our Delphi main project output directory then it returns the correct value.

We didn’t find any fix for it yet but if you have any ideas on how to resolve this issue that would be very helpful.

Our setup:

  • Embarcadero® Delphi 10.4
  • .NET Framework 4.8
  • RemObjects Hydra 6.6.0.1305

Hi,

Can you create a simple testcase that reproduces this issue, pls?
You can drop it to support@ for keeping privacy.