Skip to content

Main content

Biosafety Public Signage Character Budget Tool

Budget supplied public signage text in explicitly counted UTF-16 code units.

Loading tool…

Description

Return signage text budget in UTF-16 code units.

Laboratory-safety administration tracks inspection records, equipment counts, training coverage and supplied policy limits. A local balance or current-status flag can reveal a record gap while actual equipment condition, training competence and adequate protection require independent verification.

Return signage text budget in UTF-16 code units.

When to use this tool

Use Biosafety Public Signage Character Budget when checking the stated laboratory-safety record, timing, capacity or inventory convention.

How to use the tool and how it works

  1. Enter text, maximumCodeUnits, reservedCodeUnits. 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 used, remaining, fits. Inspect fits before interpreting the associated values.

Return signage text budget in UTF-16 code units. Require whole 0 <= reservedCodeUnits <= maximumCodeUnits; used = text.length, remaining = maximum-reserved-used, fits includes equality.1

Input fieldMeaning and unitsAccepted input
textTextRequired. Text; maximum UTF-16 length 8192.
maximumCodeUnitsMaximum Code UnitsRequired. Safe integer; minimum 0.
reservedCodeUnitsReserved Code UnitsRequired. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
usedUsedRequired. Safe integer.
remainingBudget minus use under the stated direction, retaining negative deficits where allowed.Required. Safe integer.
fitsWhether calculated use is no greater than the supplied limit.Required. Boolean.
json
{
  "input": {
    "text": "Wash hands",
    "maximumCodeUnits": 14,
    "reservedCodeUnits": 2
  },
  "output": {
    "used": 10,
    "remaining": 2,
    "fits": true
  }
}

Limitations and assumptions

  • Code units are not bytes, graphemes or rendered width; this does not assess comprehension, accessible layout or safe signage.
  • 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.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Inspect actual equipment and verified records under the applicable procedures; use qualified risk assessment and professional judgment to determine adequate protection and actual authorization.

References

  1. Calculation and input contract: biosafety/biosafety-public-signage-character-budget — tool.io

Similar or alternative tools