Skip to content

Main content

Range Dash Versus Minus Sign

Join explicit range endpoint text using an en dash or word separator while preserving endpoint minus signs.

Loading tool…

Description

Join two range endpoints using an en dash or the word to.

Scientific and financial text formatting separates literal representation from numerical interpretation. A range dash differs from a minus sign, an explicit plus differs from rounding, and asymmetric uncertainty labels need their original units and statistical meaning. Preserving text does not validate the underlying measurement or amount.

Join two range endpoints using an en dash or the word to.

When to use this tool

Use Range Dash Versus Minus Sign when checking the stated literal range, sign, uncertainty or symbol-placement convention.

How to use the tool and how it works

  1. Enter startText, endText, useEnDash. 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 formattedRange. Use the output convention below.

Require nonempty start/end texts. Join them with an en dash when useEnDash=true, otherwise with the text separator " to ".1

Input fieldMeaning and unitsAccepted input
startTextStart TextRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
endTextEnd TextRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
useEnDashUse En DashRequired. Boolean.
Output fieldInterpretationReturned shape
formattedRangeFormatted RangeRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "startText": "−5",
    "endText": "−2",
    "useEnDash": true
  },
  "output": {
    "formattedRange": "−5–−2"
  }
}

Limitations and assumptions

  • Endpoints are not parsed or ordered; an en dash is a range separator rather than an arithmetic minus sign.
  • 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 a complete unit/statistical or locale-aware formatting workflow when validating numbers, uncertainty, currency identity and reporting conventions.

References

  1. Calculation and input contract: format/range-dash-versus-minus-sign — tool.io

Similar or alternative tools