当前位置:网站首页>asp.net(c#)的货币格式化
asp.net(c#)的货币格式化
2022-07-05 08:42:00 【全栈程序员站长】
1.ToString()方式
string _mm1 = 1000 .ToString( “ N “ ); string _mm2 = ( 1000.23 ).ToString( “ N “ ); // 或者 string _mm = 1000 .ToString( “ #,###.00 “ ) string _mm2 = ( 1000.23 ).ToString( “ #,###.00 “ )
2.页面绑定
< asp:BoundField DataField = “ Total “ DataFormatString = “ {0:#,###} “ HtmlEncode = “ False “ />
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/110740.html原文链接:https://javaforall.cn
边栏推荐
- Guess riddles (2)
- 剑指 Offer 06. 从尾到头打印链表
- 猜谜语啦(2)
- Business modeling of software model | overview
- C语言标准函数scanf不安全的原因
- Numpy pit: after the addition of dimension (n, 1) and dimension (n,) array, the dimension becomes (n, n)
- 每日一题——输入一个日期,输出它是该年的第几天
- 猜谜语啦(10)
- 实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
- Arduino burning program and Arduino burning bootloader
猜你喜欢

TypeScript手把手教程,简单易懂

STM32 lights up the 1.8-inch screen under Arduino IDE

Run menu analysis

Sword finger offer 06 Print linked list from end to end

Bluebridge cup internet of things competition basic graphic tutorial - clock selection

猜谜语啦(9)

猜谜语啦(4)

Redis实现高性能的全文搜索引擎---RediSearch

【三层架构及JDBC总结】

Example 005: three numbers sorting input three integers x, y, Z, please output these three numbers from small to large.
随机推荐
IT冷知识(更新ing~)
猜谜语啦(7)
Typical low code apaas manufacturer cases
Some pitfalls of win10 network sharing
资源变现小程序添加折扣充值和折扣影票插件
猜谜语啦(11)
STM32 lights up the 1.8-inch screen under Arduino IDE
C语言标准函数scanf不安全的原因
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
Dynamic dimensions required for input: input, but no shapes were provided. Automatically overriding
Guess riddles (5)
One question per day - replace spaces
Guess riddles (4)
Run menu analysis
Apaas platform of TOP10 abroad
js异步错误处理
golang 基础 ——map、数组、切片 存放不同类型的数据
皮尔森相关系数
Guess riddles (6)
猜谜语啦(3)