Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Add-ons & Links / MathLink / C Language Functions / Getting Data /

MLGetInteger()

FilledSmallSquare int MLGetInteger(MLINK link, int *i) gets an integer from the MathLink connection specified by link and stores it in i.

FilledSmallSquare If the data on the link corresponds to a real number, MLGetInteger() will round it to an integer.

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

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

FilledSmallSquare See Section 2.13.4.

FilledSmallSquare See also: MLGetShortInteger, MLGetLongInteger.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: