当前位置:网站首页>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
边栏推荐
- 实例003:完全平方数 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
- Halcon: check of blob analysis_ Blister capsule detection
- 图解八道经典指针笔试题
- Tips 1: Web video playback code
- ABC#237 C
- EA introduction notes
- Lori remote control LEGO motor
- 皮尔森相关系数
- Program error record 1:valueerror: invalid literal for int() with base 10: '2.3‘
- Latex improve
猜你喜欢

Old Wang's esp8266 and old Wu's ws2818 light strip

Guess riddles (5)

My university

Sword finger offer 06 Print linked list from end to end

Run menu analysis

Guess riddles (9)

Pytorch entry record

Halcon shape_ trans

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?

UE pixel stream, come to a "diet pill"!
随机推荐
Lori remote control commissioning record
RT-Thread内核快速入门,内核实现与应用开发学习随笔记
Halcon wood texture recognition
[three tier architecture]
Matlab tips (28) fuzzy comprehensive evaluation
IT冷知识(更新ing~)
Illustration of eight classic pointer written test questions
Guess riddles (142)
TypeScript手把手教程,简单易懂
How can fresh students write resumes to attract HR and interviewers
Esp8266 interrupt configuration
Halcon blob analysis (ball.hdev)
猜谜语啦(3)
Halcon color recognition_ fuses. hdev:classify fuses by color
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
[牛客网刷题 Day4] JZ32 从上往下打印二叉树
Is the security account given by Yixue school safe? Where can I open an account
[three tier architecture and JDBC summary]
Affected tree (tree DP)
696. Count binary substring