Mathematica > Systems Interfaces & Deployment > C/C++ Language Interface > MathLink C Language Functions >
Mathematica > Systems Interfaces & Deployment > MathLink API > MathLink C Language Functions >
MathLink C Function

MLGetReal128()

int MLGetReal128(MLINK link, mlextended_double *d)
gets an extended-precision floating-point number from link and stores it in d.
  • MLGetReal128() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use MLError() to retrieve the error code if MLGetReal128() fails.
  • MLGetReal128() is declared in the MathLink header file mathlink.h.
#include "mathlink.h"

/* read a extended-precision floating-point number from a link */

void f(MLINK lp)
{
    mlextended_double r;

    if(! MLGetReal128(lp, &r))
        { /* unable to read the floating-point number from lp */ }

    /* ... */
}
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team