FractionalPart
The fractional part of x, with the sign of x: x minus its integer part.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
FractionalPart✓Typed signatures
| Type | Package | Applies |
|---|---|---|
(number) -> number | analytic | always |
Details
- Keeps the sign of x, unlike compute-engine's native Fract, which always lands in : , where .
- Exact where IntegerPart is: an exact rational reduces to an exact rational, and a symbolic constant like Pi stays exact and symbolic ().
- Zero exactly on the integers.
- Real domain -- a concretely complex argument is left unevaluated.
Plot
Examples
About
| Examples | 6 |
|---|---|
| Checked against | Wolfram Language 6 agreeSageMath 6 agreeRust 6 agree |
| Crosswalk | Wolfram LanguageRust |
Implementation
mapped
sagepackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.ts