hb_mathGetLastError()

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 hbmath.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

<iMathErrorType>

Compliance

NA

Files

Header file is hbmath.h
Library is core

Platforms

All

Advertisements

3 responses to “hb_mathGetLastError()

  1. Pingback: Harbour All Functions – H | Viva Clipper !

  2. Pingback: Harbour Math Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s