Description
Parse nonnegative pounds exactly, validate shillings 0-19 and pence 0-11, and form pounds × 240 + shillings × 12 + pence.
Historical money records depend on a denomination system, period, source, and conversion basis. Exact minor-unit arithmetic can preserve a recorded amount, while a supplied conversion factor does not establish purchasing power or a market exchange rate.
Parse nonnegative pounds exactly, validate shillings 0-19 and pence 0-11, and form pounds × 240 + shillings × 12 + pence.
When to use this tool
Use Historical Sterling Ledger Amount when you need to preserve, format, or convert a supplied historical money component under its stated convention.
How to use the tool and how it works
- Enter poundsDecimal, shillings, pence, negative. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read totalPenceDecimal, decimalPounds. Use the output convention below.
Parse nonnegative pounds exactly, validate shillings 0-19 and pence 0-11, and form pounds × 240 + shillings × 12 + pence. Apply negative to the total; return exact totalPenceDecimal and numeric total/240 serialized as decimalPounds.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| poundsDecimal | Nonnegative pounds as an exact decimal-integer string. | Required. Text; maximum UTF-16 length 15. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above. |
| shillings | Shillings | Required. Safe integer; minimum 0; maximum 19. |
| pence | Pence | Required. Safe integer; minimum 0; maximum 11. |
| negative | Negative | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| totalPenceDecimal | Exact signed integer total in predecimal pence, with 240 pence per pound. | Required. Text; maximum UTF-16 length 8192. |
| decimalPounds | String made from a floating-point pounds result; large exact pence totals can lose precision here. | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"poundsDecimal": "2",
"shillings": 10,
"pence": 6,
"negative": false
},
"output": {
"totalPenceDecimal": "606",
"decimalPounds": "2.525"
}
} Limitations and assumptions
- This uses the supplied predecimal sterling convention; decimalPounds can lose precision and no historical exchange, valuation, purchasing power, or source authenticity 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.
- 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 original denomination and source record, and retain exact strings when large amounts must remain precise.
References
Similar or alternative tools
- American Manuscript Dollar Cent Notation
Parse nonnegative dollarsDecimal exactly, require cents 0-99, and form a two-decimal-place string.
- Brazilian Currency Reform Source Factor
Divide oldAmount by the factor and display the supplied denomination relationship with its source.