I'm currently working on a MacBook Pro equipped with an M2 chip and using Parallels for virtualization to run Windows 11 ARM. I've encountered a peculiar issue. When I compile for 32bit, I'm not getting the result I anticipate. The code should produce an output of '3.0', but it consistently returns '0'.
Here's a snippet of the code causing the problem:
procedure TMainView.Button3Click(Sender: TObject);
begin
var LValue: UInt64 := 3;
Caption := LValue.ToDouble.ToString;
end;
I've found this to be consistent across several Delphi versions, specifically D10, D11, and D12. Has anyone else experienced this issue, or can offer any insight?