将数字格式化为罗马数字? [英] Format numbers to roman numerals?

查看:58
本文介绍了将数字格式化为罗马数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 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.

这篇关于将数字格式化为罗马数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆