Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Mathematical Functions /  Numerical Functions /

FractionalPart

FilledSmallSquare FractionalPart[x] gives the fractional part of x.

FilledSmallSquare Mathematical function (see Section A.3.10).
FilledSmallSquare FractionalPart[x], in effect, takes all digits to the right of the decimal point and drops the others.
FilledSmallSquare Examples: FractionalPart[2.4]LongRightArrow; FractionalPart[2.6]LongRightArrow; FractionalPart[-2.4]LongRightArrow; FractionalPart[-2.6]LongRightArrow.
FilledSmallSquare FractionalPart[x] + IntegerPart[x] is always exactly x.
FilledSmallSquare FractionalPart[x] yields a result when x is any numeric quantity, whether or not it is an explicit number.
FilledSmallSquare Example: FractionalPart[Pi^2]LongRightArrow.
FilledSmallSquare For exact numeric quantities, FractionalPart internally uses numerical approximations to establish its result.
FilledSmallSquare See The Mathematica Book on the web: Section 3.2.2.
FilledSmallSquare See also: IntegerPart, Mod.