decimalCodeUnit function

int decimalCodeUnit(
  1. int digitValue
)

The ASCII code unit spelling digitValue, the inverse of decimalValue.

Assumes 0-9, which is what a validated digit sequence holds; no check-digit algorithm needs this direction, only rendering does.

Implementation

int decimalCodeUnit(int digitValue) => digitValue + _asciiZero;