将任何数字限制为四位数? [英] Limit any number to four digits?
本文介绍了将任何数字限制为四位数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有人可以帮我解决这个问题。
无论如何要格式化字符串/整数等以便它总是输出一个4位数字?
谢谢。
Ron。
Hi,
I was wondering if someone could help me on this one.
Is there anyway to format a string/integer etc so that it always outputs a 4 digits number?
thank you.
Ron.
推荐答案
我想知道是否有人可以帮我这个。
无论如何格式化字符串/整数等等,它总是输出一个4位数字?
谢谢。
Ron。
Hi,
I was wondering if someone could help me on this one.
Is there anyway to format a string/integer etc so that it always outputs a 4 digits number?
thank you.
Ron.
这应该有所帮助:
MsgBox格式(23," 0000")
This should help:
MsgBox Format(23, "0000")
非常感谢父亲。
我可以问23是什么用的吗?
再次,谢谢你好
Ron。
Hi,
thanks a lot sire.
May I ask what the 23 is for?
again, Thank you
Ron.
它没有用。
这里是我拥有的:
it didn''t work.
here''s what I have:
展开 | 选择 | Wrap | 行号
这篇关于将任何数字限制为四位数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文