Description
Join a mixed fraction with space, no-break space or plus; omit a zero fractional part when the whole part is nonzero.
Fractions and ratios can be displayed with several separators and sign policies. Reducing integer terms, normalizing a denominator sign and merely changing a slash glyph are different operations.
Join a mixed fraction with space, no-break space or plus; omit a zero fractional part when the whole part is nonzero.
When to use this tool
Use Fraction Whole Part Separator Choice when you need the stated ratio or fraction presentation operation.
How to use the tool and how it works
- Enter wholePart, numerator, denominator, separator. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read formatted. Use the output convention below.
Require nonnegative integer wholePart and a proper fractional numerator with positive denominator. Join a mixed fraction with space, no-break space or plus; omit a zero fractional part when the whole part is nonzero.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| wholePart | Whole Part | Required. Safe integer; minimum 0. |
| numerator | Numerator | Required. Safe integer; minimum 0. |
| denominator | Denominator | Required. Safe integer; minimum 1. |
| separator | Separator | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| formatted | Formatted | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"wholePart": 2,
"numerator": 1,
"denominator": 3,
"separator": " "
},
"output": {
"formatted": "2 1/3"
}
} Limitations and assumptions
- The fraction is not reduced. Zero whole part still displays numerator/denominator, even 0/denominator; no signed mixed-number grammar is supported.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use exact rational arithmetic when mathematical equivalence and reduction matter. Choose rendering and direction-isolation behavior for the destination rather than assuming a Unicode slash produces a complete typeset fraction.
References
Similar or alternative tools
- Ratio Colon Reduction Display
Compute their greatest common divisor by remainders, divide both, and join with a colon.
- Fraction Vulgar Slash Display Choice
Require nonzero denominator and join numeric numerator and denominator with ASCII slash or Unicode fraction slash U+2044.