由网友(转身︶你已走远°)分享简介:我想格式化值,以便像20000的数值会显示为$ 20K等。什么是C#的格式?解决方案 双倍金额= 20000;字符串格式=的String.Format($ {0:0,0.0} K,金额);I would like to format values so that a value like 20000 would...![EXCEL...Hl列到M列中的数据,不属于A列到F列区域内的话自动填充颜色,求H到M列的条件格式公式](https://p.xsw88.cn/allimgs/daicuo/20230903/5971.png)
我想格式化值,以便像20000的数值会显示为$ 20K等。什么是C#的格式?
解决方案 双倍金额= 20000;
字符串格式=的String.Format($ {0:0,0.0} K,金额);
I would like to format values so that a value like 20000 would display as $20k and so on. What would be the C# format?
解决方案![EXCEL...Hl列到M列中的数据,不属于A列到F列区域内的话自动填充颜色,求H到M列的条件格式公式](https://p.xsw88.cn/allimgs/daicuo/20230903/5971.png)
double amount = 20000;
string formatted = string.Format("${0:0,.0}K", amount);
相关推荐
最新文章