Percent Range Style

Validate percentage-range punctuation and repeated percent signs.

Description

A percent-range style check constructs a rendering of two ordered percentage values.

A percent-range style check constructs a rendering of two ordered percentage values. The separator is caller-selected text.1

Validate percentage-range punctuation and repeated percent signs.

When to use Percent Range Style

Use this tool to validate percentage-range punctuation and repeated percent signs.

Prepare the text, recorded observations, aligned figures or editorial criteria requested. Confirm what each label, count, timestamp or supplied flag represents before interpreting the result.

How to use Percent Range Style and understand its results

  1. Prepare the text, recorded observations, aligned figures or editorial criteria requested. Confirm what each label, count, timestamp or supplied flag represents before interpreting the result.
  2. Enter lowerPercent, upperPercent, renderedRange, separator using the field table and calculation rules, then run the tool.
  3. Read expectedRange, matchesExpected. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
Input fieldMeaningValue type; see rules belowRequirement
lowerPercentLower percentagenumberRequired
upperPercentUpper percentagenumberRequired
renderedRangeRendered percentage rangestringRequired
separatorRequired range separatorstringRequired

Enter finite lower≤upper values, a separator and rendering. Trim the rendering and compare exactly with expected text; return expected and match. Values are not constrained to 0–100.

expected=lower+%+separator+upper+%

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
expectedRangeExpected percentage rangestring
matchesExpectedMatches expected rangeboolean
json
{
  "input": {
    "lowerPercent": 10,
    "upperPercent": 20,
    "renderedRange": "10%–20%",
    "separator": "–"
  },
  "output": {
    "expectedRange": "10%–20%",
    "matchesExpected": true
  }
}

Limitations and assumptions

No numeric rounding, interval interpretation or publication style is selected automatically.

Numeric inputs must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Extremely large text inputs are rejected. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors. A successfully returned false flag is an evaluated outcome; its meaning is explained above.

Alternative or Complementary methods

Use Temperature Style: Validate a rendered temperature against supplied unit and degree-symbol policy. For a complementary task, use Dollar Figure Style: Validate dollar-figure grouping and decimal precision.

References

  1. Percent Range Style — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies