将数字格式化为罗马数字?
问题描述:
是否可以使用 Format 函数以罗马数字显示整数?
Is it possible to use Format function to display integers in roman numerals?
For Counter As Integer = 1 To 10
Literal1.Text &= Format(Counter, "???")
Next
答
不,没有标准的格式化程序.
No, there is no standard formatter for that.
如果您阅读关于罗马数字的维基百科,您会发现有多种方法格式化罗马数字.因此,您必须编写自己的方法,我们使用其他人的代码.
If you read the Wikipedia on Roman numerals you'll find that there are multiple ways of formatting Roman Numerals. So you will have to write your own method our use the code of someone else.