|
SOLUTIONS
|
MATHEMATICA MATHLINK C FUNCTION
MLGetInteger()
int MLGetInteger(MLINK link, int *i)
gets an integer from the MathLink connection specified by link and stores it in i.
DetailsDetails
- 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().
- MLGetInteger() is equivalent to MLGetInteger32().
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
