Description
Parse numerator and denominator as exact integers, require 0 ≤ numerator ≤ positive denominator, and reduce by their Euclidean greatest common divisor.
A proportion is a ratio with a defined numerator and denominator. Fractions, percentages, and per-mille values use different scales, while a signed deviation also depends on which value is treated as the reference.
Parse numerator and denominator as exact integers, require 0 ≤ numerator ≤ positive denominator, and reduce by their Euclidean greatest common divisor.
When to use this tool
Use Middle Eastern Wakf Share Fraction when you need a clearly defined ratio, retained share, or signed proportional component.
How to use the tool and how it works
- Enter numeratorDecimal, denominatorDecimal. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read fraction, exactShare. Use the output convention below.
Parse numerator and denominator as exact integers, require 0 ≤ numerator ≤ positive denominator, and reduce by their Euclidean greatest common divisor. Return reduced exactShare plus the numeric fraction.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| numeratorDecimal | Numerator Decimal | Required. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above. |
| denominatorDecimal | Denominator Decimal | Required. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| fraction | Dimensionless fraction; a value of 0.1 represents 10%. | Required. Finite number. |
| exactShare | Exact Share | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"numeratorDecimal": "3",
"denominatorDecimal": "12"
},
"output": {
"fraction": 0.25,
"exactShare": "1/4"
}
} Limitations and assumptions
- The numeric fraction is floating point while exactShare preserves the ratio; no endowment ownership, beneficiary entitlement, or governing rule is verified.
- 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.
Alternative or Complementary methods
Write out the numerator, denominator, and reporting scale when comparing this result with another indicator.
References
Similar or alternative tools
- Share Denominator Reversal Pair
Require both amounts positive and return firstAmount/secondAmount and its reciprocal.
- Quoted Price Per PAR Crosswalk
Multiply nonnegative quotePercentOfPar/100 by nonnegative parAmount for cashPrice.