You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyscripter edited this page Feb 27, 2021
·
3 revisions
Masking FPU Exceptions
Delphi raises an exception when floating operations result produce +/- infinity (e.g. division by zero). This setting is not compatible with a number of Python libraries such as numpy and scipy.
Python for Delphi provides a procedure MaskFPUExceptions that can help resolve such issues. If you get errors when using python libraries you make want to take the following statement:
MaskFPUExceptions(True)
to either the initialization section of any unit or to the OnBeforeLoad event handler of the PythonEngine.