Skip to content

Main content

Currency Negative Sign Spacing Token Tool

Return explicit sign-affix tokens without imposing a locale or currency-symbol placement.

Loading tool…

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

  1. Enter negative, style, space. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
negativeNegativeRequired. Boolean.
styleStyleRequired. Text; one of "minus-before", "minus-after", "parentheses"; maximum UTF-16 length 8192.
spaceSpaceRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
prefixSupplied or returned literal prefix under the stated grammar.Required. Text; maximum UTF-16 length 8192.
suffixReturned literal suffix; inspect any lookup or placeholder flag.Required. Text; maximum UTF-16 length 8192.
json
{
  "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

  1. Calculation and input contract: format/currency-negative-sign-spacing-token — tool.io

Similar or alternative tools