EvaluateNTEMethod

Applies to:Fast Math Parser
Class:uCalc.ParsedExpr
Same as Evaluate, but with no testing or handling for floating point exceptions
Syntax
EvaluateNTE()
Remarks
This is similar to Evaluate, with the difference being that EvaluateNTE does not perform any exception handling test. As a consequence, the uCalc error handler callback does not handle these exceptions.

This option can speed up evaluations. However, it's important to have a plan for handling exceptions. You can either mask all exceptions with FPEnvSetExceptionMask or FPEnvToggleExceptionMask, or catch exceptions with your own source code (such as with try/catch) . If such provisions are not met, floating point exceptions (such as division by 0) , may cause your program to behave unexpectadly or to terminate abruptly.

DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="EvaluateNTE")> _

Private Function EvaluateNTE__(ByVal ExprHandle As IntPtr) As  Double
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="EvaluateNTE")]

protected static extern  double EvaluateNTE_(IntPtr ExprHandle);
            
{DLLImport}function EvaluateNTE__(ExprHandle: System.Pointer):  Double; cdecl; external uCalcDLL name 'EvaluateNTE';

            
typedef  double (* __EvaluateNTE)(void *ExprHandle); 

            
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "EvaluateNTE")]

static double EvaluateNTE_(void *  ExprHandle);
            
See also
Prev | Next