pub fn number_to_roman(n: u32, upper: bool) -> String
1〜3999 の序数をローマ数字表記に変換する(upper-roman/lower-roman)。範囲外は十進数にフォールバック。
upper-roman
lower-roman