PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Systems Interfaces & Deployment
>
C/C++ Language Interface
>
MathLink C Language Functions
>
Mathematica
>
Systems Interfaces & Deployment
>
MathLink API
>
MathLink C Language Functions
>
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
.
MORE INFORMATION
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()
.
SEE ALSO
MLGetShortInteger()
MLGetLongInteger()
TUTORIALS
Manipulating Expressions in External Programs
Portability of
MathLink
Programs
MathLink
C API Developer Guide (Mac OS X)
MathLink
C API Developer Guide (Unix and Linux)
MathLink
C API Developer Guide (Windows)
MORE ABOUT
Alphabetical Listing of MathLink C Functions
MathLink C Functions for Exchanging Data
MathLink C Functions for Exchanging Expressions
MathLink C Functions for Exchanging Integers
MathLink C Language Functions
© 2008 Wolfram Research, Inc.