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
- 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.
- Enter lowerPercent, upperPercent, renderedRange, separator using the field table and calculation rules, then run the tool.
- Read expectedRange, matchesExpected. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- 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 field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| lowerPercent | Lower percentage | number | Required |
| upperPercent | Upper percentage | number | Required |
| renderedRange | Rendered percentage range | string | Required |
| separator | Required range separator | string | Required |
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 field | Meaning | Value type |
|---|---|---|
| expectedRange | Expected percentage range | string |
| matchesExpected | Matches expected range | boolean |
{
"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
-
Percent Range Style — tool.io
Similar or alternative tools
- Temperature Style
Validate a rendered temperature against supplied unit and degree-symbol policy.
- Dollar Figure Style
Validate dollar-figure grouping and decimal precision.