Mathematica 9 is now available

FractionalPart

Usage

FractionalPart[x] gives the fractional part of x.


Notes

• Mathematical function (see Section A.3.10).
FractionalPart[x] in effect takes all digits to the right of the decimal point and drops the others.
• Examples: FractionalPart[2.4]LongRightArrow ; FractionalPart[2.6]LongRightArrow ; FractionalPart[-2.4]LongRightArrow ; FractionalPart[-2.6]LongRightArrow .
FractionalPart[x] + IntegerPart[x] is always exactly x.
FractionalPart[x] yields a result when x is any numeric quantity, whether or not it is an explicit number.
• Example: FractionalPart[Pi^2]LongRightArrow .
• For exact numeric quantities, FractionalPart 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: IntegerPart, Mod.
• New in Version 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.