Description
Accept minus-before, minus-after or parentheses style and empty, ordinary-space or no-break-space gap.
Monetary presentation depends on the currency's minor-unit scale, sign convention and locale. Supplying those display choices explicitly avoids confusing formatting with currency conversion, fee calculation or payment processing.
Accept minus-before, minus-after or parentheses style and empty, ordinary-space or no-break-space gap.
When to use this tool
Use Currency Negative Sign Spacing Token when you need the specified monetary sign or minor-unit layout.
How to use the tool and how it works
- Enter negative, style, space. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read prefix, suffix. Use the output convention below.
Accept minus-before, minus-after or parentheses style and empty, ordinary-space or no-break-space gap. Return negative prefix/suffix tokens, or both empty for nonnegative metadata.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| negative | Negative | Required. Boolean. |
| style | Style | Required. Text; one of "minus-before", "minus-after", "parentheses"; maximum UTF-16 length 8192. |
| space | Space | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| prefix | Supplied or returned literal prefix under the stated grammar. | Required. Text; maximum UTF-16 length 8192. |
| suffix | Returned literal suffix; inspect any lookup or placeholder flag. | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"negative": true,
"style": "minus-before",
"space": " "
},
"output": {
"prefix": "- ",
"suffix": ""
}
} Limitations and assumptions
- No amount or currency symbol is formatted. The supplied sign and spacing policy does not select a locale or official accounting rule.
- 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
Use the intended currency metadata and locale formatter for production monetary display. Keep arithmetic, rounding, exchange rates and actual transaction authorization separate from text presentation.
References
Similar or alternative tools
- Money Minor Unit Parenthesis Style
Pad its magnitude, insert a decimal point by digits, prefix symbol, and parenthesize negative amounts.
- Formatting: Signed Zero Parenthesis Label
Remove a leading plus, retain a negative minus or replace it with parentheses, and flag a negative all-zero value.