Mathematica 9 is now available
 Documentation /  Mathematica /  The Mathematica Book /  Mathematica Reference Guide /  Listing of C Functions in the MathLink Library /

MLGetNextMLGetRealArray

MLGetReal()

FilledSmallSquareint MLGetReal(MLINK link, double *x) gets a floating-point number from the MathLink connection specified by link and stores it in x.

FilledSmallSquare If the data on the link corresponds to an integer, MLGetReal() will coerce it to a double before storing it in x.

FilledSmallSquare If the data on the link corresponds to a number outside the range that can be stored in a C double on your computer system, then MLGetReal() will fail, and return 0.

FilledSmallSquare You can get arbitrary-precision real numbers by first using RealDigits to generate lists of digits, then calling MLGetIntegerList().

FilledSmallSquareMLGetReal() is normally equivalent to MLGetDouble().

FilledSmallSquare See The Mathematica Book: Section 2.12.4.

FilledSmallSquare See also: MLGetFloat, MLGetDouble, MLGetRealList.

MLGetNextMLGetRealArray



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.