当前位置:网站首页>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
边栏推荐
- Lori remote control LEGO motor
- One dimensional vector transpose point multiplication np dot
- Business modeling of software model | overview
- Guess riddles (2)
- Esphone Feixun DC1 soft change access homeassstant
- Warning: retrying occurs during PIP installation
- Meizu Bluetooth remote control temperature and humidity access homeassistant
- 实例003:完全平方数 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
- Classification of plastic surgery: short in long long long
- Halcon blob analysis (ball.hdev)
猜你喜欢
Numpy 小坑:维度 (n, 1) 和 维度 (n, ) 数组相加运算后维度变为 (n, n)
EA introduction notes
Example 010: time to show
每日一题——输入一个日期,输出它是该年的第几天
Halcon affine transformations to regions
剑指 Offer 05. 替换空格
Halcon shape_ trans
Matlab tips (28) fuzzy comprehensive evaluation
Digital analog 1: linear programming
Meizu Bluetooth remote control temperature and humidity access homeassistant
随机推荐
Run菜单解析
leetcode - 445. Add two numbers II
Adaboost使用
Example 008: 99 multiplication table
Guess riddles (6)
golang 基础 ——map、数组、切片 存放不同类型的数据
UE pixel stream, come to a "diet pill"!
Guess riddles (3)
287. 寻找重复数-快慢指针
【NOI模拟赛】汁树(树形DP)
One question per day - replace spaces
PIP installation
Business modeling of software model | stakeholders
Basic number theory - factors
TypeScript手把手教程,简单易懂
How can fresh students write resumes to attract HR and interviewers
猜谜语啦(5)
Halcon blob analysis (ball.hdev)
[three tier architecture and JDBC summary]
STM32 summary (HAL Library) - DHT11 temperature sensor (intelligent safety assisted driving system)