Description
Parse nonnegative dollarsDecimal exactly, require cents 0-99, and form a two-decimal-place string.
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 dollarsDecimal exactly, require cents 0-99, and form a two-decimal-place string.
When to use this tool
Use American Manuscript Dollar Cent Notation 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 dollarsDecimal, cents, negative. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read amountDecimal. Use the output convention below.
Parse nonnegative dollarsDecimal exactly, require cents 0-99, and form a two-decimal-place string. Prefix minus only when negative is true and the amount is nonzero.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| dollarsDecimal | Nonnegative whole dollars as an exact decimal-integer string. | Required. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above. |
| cents | Integer cents from 0 through 99; output amount formatting remains exact. | Required. Safe integer; minimum 0; maximum 99. |
| negative | Negative | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| amountDecimal | Amount Decimal | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"dollarsDecimal": "12",
"cents": 5,
"negative": false
},
"output": {
"amountDecimal": "12.05"
}
} Limitations and assumptions
- The string preserves arbitrary integer precision and suppresses negative zero; no exchange value, historical denomination, inflation, or monetary rights are 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 original denomination and source record, and retain exact strings when large amounts must remain precise.
References
Similar or alternative tools
- Currency Negative Accounting Label
Strip a leading minus and use parentheses only for a nonzero negative lexical amount.
- Historical Sterling Ledger Amount
Parse nonnegative pounds exactly, validate shillings 0-19 and pence 0-11, and form pounds × 240 + shillings × 12 + pence.