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

  • intMLGetInteger(MLINKlink,int*i) gets an integer from the MathLink connection specified by link and stores it in i.
  • If the data on the link corresponds to a real number, MLGetInteger() will round it to an integer.
  • If the data on the link corresponds to an integer too large to store in a C int on your computer system, then MLGetInteger() will fail, and return 0.
  • You can get arbitrary-precision integers by first using IntegerDigits to generate lists of digits, then calling MLGetIntegerList().
  • See the Mathematica book: Section 2.12.4.
  • See also: MLGetShortIntegerMLGetShortIntegerMainBookLinkOldButtonDataMLGetShortInteger, MLGetLongIntegerMLGetLongIntegerMainBookLinkOldButtonDataMLGetLongInteger.



    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.