hb_mathGetLastError()
get the last math lib error
- Syntax
-
- C Prototype
- #include <hbmath.h>
- hb_mathGetLastError (HB_MATH_EXCEPTION * phb_exc) --> int iMathErrorType
- Arguments
-
- phb_exc pointer to HB_MATH_EXCEPTION structure, if not NULL, the structure will be filled with information about the last math error: typedef struct _HB_MATH_EXCEPTION { int type; /* math error type, is one of the constants HB_MATH_ERR_xxx defined in math.ch */ char *funcname; /* pointer to name of the math C RTL routine that caused the error */ char *error; /* pointer to error description */ double arg1; /* first and */ double arg2; /* second double argument to the math routine */ double retval; /* corrected return value for the math routine */ int retvalwidth; /* width and */ int retvaldec; /* decimals of the corrected return value, both default to -1 */ int handled; /* 1, if the math error is already corrected, 0 otherwise */ } HB_MATH_EXCEPTION;
- Returns
-
- Description
-
Examples
- Status
- Ready
- Compliance
-
- Compliance is not applicable to API calls.
- Files
-
- Library is rtl
- Platforms
-
- All