Api

StringutilsArabictoroman

OpenAPI > StringUtils > arabicToRoman

OpenAPI.StringUtils.arabicToRoman property

将阿拉伯数字转换为罗马数字的函数

Signature:

static arabicToRoman: (num: number) => string;

Example

const romanNum = arabicToRoman(2024) // 返回 'MMXXIV'

Copyright © 2021 - 2025