MixedFractionParts[expr]
gives the list {IntegerPart[expr],FractionalPart[expr]}.


MixedFractionParts
MixedFractionParts[expr]
gives the list {IntegerPart[expr],FractionalPart[expr]}.
Details

- Mathematical function, suitable for both symbolic and numerical manipulation.
- MixedFractionParts[x] in effect separates the digits to the left and right of the decimal point.
- Total[MixedFractionParts[x]] is exactly x for numeric x.
- MixedFractionParts[x] yields a result when x is any numeric quantity, whether or not it is an explicit number.
- For exact numeric quantities, MixedFractionParts internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
- MixedFractionParts applies separately to real and imaginary parts of complex numbers.
- MixedFractionParts automatically threads over lists.
Examples
open all close allBasic Examples (2)
Scope (2)
Related Guides
History
Text
Wolfram Research (2019), MixedFractionParts, Wolfram Language function, https://reference.wolfram.com/language/ref/MixedFractionParts.html.
CMS
Wolfram Language. 2019. "MixedFractionParts." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MixedFractionParts.html.
APA
Wolfram Language. (2019). MixedFractionParts. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MixedFractionParts.html
BibTeX
@misc{reference.wolfram_2025_mixedfractionparts, author="Wolfram Research", title="{MixedFractionParts}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/MixedFractionParts.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_mixedfractionparts, organization={Wolfram Research}, title={MixedFractionParts}, year={2019}, url={https://reference.wolfram.com/language/ref/MixedFractionParts.html}, note=[Accessed: 11-August-2025]}