gpt4 book ai didi

c# - 格式化数字作为排名位置

转载 作者:太空宇宙 更新时间:2023-11-03 17:06:11 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Is there an easy way in .NET to get “st”, “nd”, “rd” and “th” endings for numbers?

C# 中是否已经内置了将数字格式化为排名位置的内容?

“排名位置”是指 ["st","nd,"rd","th"] 之一,例如:(1st, 2nd, 3rd, 4th)。

我知道为此编写一个扩展很容易,我只是想知道该语言中是否已经有一些东西可以满足。

干杯

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com