OpenersNotesSection(Spacer1)Details

If the data on the link corresponds to a real number, WSGetInteger() 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 WSGetInteger() will fail, and return 0.

You can get arbitrary-precision integers by first using (RefLink[IntegerDigits, paclet:ref/IntegerDigits]) to generate lists of digits, then calling (NonWLLink[WSGetIntegerList(), paclet:ref/c/WSGetIntegerList]).

WSGetInteger() is equivalent to (NonWLLink[WSGetInteger32(), paclet:ref/c/WSGetInteger32]).

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[WSGetShortInteger(), paclet:ref/c/WSGetShortInteger])  ▪  (NonWLLink[WSGetLongInteger(), paclet:ref/c/WSGetLongInteger])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Manipulating Expressions in External Programs, paclet:tutorial/ManipulatingExpressionsInExternalPrograms])}, {▪(RefLinkPlain[Portability of WSTP Programs, paclet:tutorial/PortabilityOfWSTPPrograms])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Alphabetical Listing of WSTP C Functions, paclet:guide/AlphabeticalListingOfWSTPCFunctions])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Data, paclet:guide/WSTPCFunctionsForExchangingData])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Expressions, paclet:guide/WSTPCFunctionsForExchangingExpressions])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Integers, paclet:guide/WSTPCFunctionsForExchangingIntegers])}, {▪(RefLinkPlain[WSTP C Language Functions, paclet:guide/WSTPCLanguageFunctions])}})}})