Description
Form major × suppliedBase + subunits using exact integers.
A mixed-unit historical amount combines a major unit with a specified number of subunits. Normalization carries excess or negative subunits across that supplied base.
Form major × suppliedBase + subunits using exact integers.
When to use this tool
Use Brazilian Milreis Subunit Carry when you need to normalize a recorded amount without selecting historical exchange rates.
How to use the tool and how it works
- Enter major, subunits, suppliedBase. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read normalizedMajor, normalizedSubunits. Use the output convention below.
Form major × suppliedBase + subunits using exact integers. Normalize with floor division so normalizedSubunits lies in [0, suppliedBase).1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| major | Major | Required. Safe integer. |
| subunits | Subunits | Required. Safe integer. |
| suppliedBase | Supplied Base | Required. Safe integer; minimum 1. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| normalizedMajor | Normalized Major | Required. Safe integer. |
| normalizedSubunits | Normalized Subunits | Required. Safe integer. |
{
"input": {
"major": 2,
"subunits": 1500,
"suppliedBase": 1000
},
"output": {
"normalizedMajor": 3,
"normalizedSubunits": 500
}
} Limitations and assumptions
- Signed inputs are accepted and the base is supplied; no historical exchange rate or denomination policy is inferred.
- 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
Consult the source denomination convention and preserve original spelling when historical interpretation matters.
References
Similar or alternative tools
- Cross Border Fee Rounding Reserve
Compute amountMinor × feeRate + fixedMinor for unroundedFee, subtract bookedFeeMinor for reserve, and subtract the booked fee from amountMinor for netBookedMinor.
- List Offset Wrap Index
Add signed index and offset using exact integers, then use floor division by positive length to return a nonnegative wrappedIndex and signed turns.