当前位置:网站首页>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
边栏推荐
- Infix expression evaluation
- 猜谜语啦(5)
- Basic number theory - fast power
- 猜谜语啦(6)
- Illustration of eight classic pointer written test questions
- Example 003: a complete square is an integer. It is a complete square after adding 100, and it is a complete square after adding 168. What is the number?
- 319. Bulb switch
- Arrangement of some library files
- Reasons for the insecurity of C language standard function scanf
- How to manage the performance of R & D team?
猜你喜欢
Example 009: pause output for one second
Business modeling of software model | stakeholders
MATLAB skills (28) Fuzzy Comprehensive Evaluation
Guess riddles (4)
【三层架构】
Halcon clolor_ pieces. Hedv: classifier_ Color recognition
资源变现小程序添加折扣充值和折扣影票插件
Guess riddles (6)
How apaas is applied in different organizational structures
Guess riddles (2)
随机推荐
Arduino burning program and Arduino burning bootloader
Basic number theory - factors
剑指 Offer 09. 用两个栈实现队列
Apaas platform of TOP10 abroad
Example 010: time to show
Business modeling | process of software model
[牛客网刷题 Day4] JZ35 复杂链表的复制
STM32 lights up the 1.8-inch screen under Arduino IDE
猜谜语啦(10)
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
Shift operation of complement
Task failed task_ 1641530057069_ 0002_ m_ 000000
My university
【NOI模拟赛】汁树(树形DP)
【日常訓練--騰訊精選50】557. 反轉字符串中的單詞 III
图解八道经典指针笔试题
Lori remote control LEGO motor
Sword finger offer 06 Print linked list from end to end
猜谜语啦(3)
每日一题——替换空格