|
SOLUTIONS
|
MATHEMATICA MATHLINK C 函数
MLGetInteger()
int MLGetInteger(MLINK link, int *i)
从由 link 指定的 MathLink 连接中获取一个整数并存在 i 中.
更多信息更多信息
- 如果链接中的数据对应于实数,MLGetInteger() 会将其四舍五入为整数.
- 如果链接中数据对应的整数太大,不能存为你的计算机系统的 C int,那么,MLGetInteger() 将失败并返回0.
- 获取任意精度整数,可以首先使用 IntegerDigits 获取数字列表,然后调用 MLGetIntegerList().
- MLGetInteger() 等同于 MLGetInteger32().
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
