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

IntegerPart

Usage

IntegerPart[x] gives the integer part of x.


Notes

• Mathematical function (see Section A.3.10).
IntegerPart[x] in effect takes all digits to the left of the decimal point and drops the others.
• Examples: IntegerPart[2.4]LongRightArrow ; IntegerPart[2.6]LongRightArrow ; IntegerPart[-2.4]LongRightArrow ; IntegerPart[-2.6]LongRightArrow .
IntegerPart[x] + FractionalPart[x] is always exactly x.
IntegerPart[x] returns an integer when x is any numeric quantity, whether or not it is an explicit number.
• Example: IntegerPart[Pi^2]LongRightArrow .
• For exact numeric quantities, IntegerPart internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
• See Section 3.2.2.
• See also: FractionalPart, Round, Floor, Ceiling, Chop.
• New in Version 3.


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



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: