当前位置:网站首页>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
边栏推荐
- Arduino+a4988 control stepper motor
- 猜谜语啦(10)
- Task failed task_ 1641530057069_ 0002_ m_ 000000
- Guess riddles (8)
- Shift operation of complement
- [noi simulation] juice tree (tree DP)
- 猜谜语啦(5)
- Run menu analysis
- Example 004: for the day of the day, enter a day of a month of a year to judge the day of the year?
- 猜谜语啦(142)
猜你喜欢
随机推荐
L298N module use
Esphone Feixun DC1 soft change access homeassstant
Typescript hands-on tutorial, easy to understand
Numpy 小坑:维度 (n, 1) 和 维度 (n, ) 数组相加运算后维度变为 (n, n)
猜谜语啦(6)
Business modeling | process of software model
How to manage the performance of R & D team?
Guess riddles (142)
Xrosstools tool installation for X-Series
Redis实现高性能的全文搜索引擎---RediSearch
Search data in geo database
Run menu analysis
Chapter 18 using work queue manager (1)
我从技术到产品经理的几点体会
Halcon color recognition_ fuses. hdev:classify fuses by color
Esphone retrofits old fans
剑指 Offer 05. 替换空格
Go dependency injection -- Google open source library wire
Arrangement of some library files
[matlab] matlab reads and writes Excel