Convert positive integers 1–3999 to canonical Roman notation and back. It uses I, V, X, L, C, D, M and subtractive pairs such as IV and IX; noncanonical IIII or VX are rejected.
Only modern canonical notation without overbars is supported, not zero, negatives, fractions or values above 3999. Input is capped at 64 characters. Invalid values produce explicit errors; empty fields clear results instead of leaving stale output.
MCMXCIV
1994
Convert positive integers 1–3999 to canonical Roman notation and back.