Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 货币-在ssrs中从小数点四舍五入到小数点后两位_Sql Server_Tsql_Reporting Services - Fatal编程技术网

Sql server 货币-在ssrs中从小数点四舍五入到小数点后两位

Sql server 货币-在ssrs中从小数点四舍五入到小数点后两位,sql-server,tsql,reporting-services,Sql Server,Tsql,Reporting Services,我试图用这个表达式将货币类型四舍五入到小数点后两位 =Format(Fields!ClosingBalance.Value,"#,##0.##") 问题是我得到了逗号(,)在中间,逗号我不想要。 此外,100.00表示100。我要100美元 请帮助如果不需要逗号,请不要在格式字符串中放置逗号: =Format(Fields!ClosingBalance.Value,"#.##") 尝试将格式字符串更改为#.0,00。这将为您提供两个固定的十进制数字。您的“逗号”在语言设置中。但是,您可以创建

我试图用这个表达式将货币类型四舍五入到小数点后两位

=Format(Fields!ClosingBalance.Value,"#,##0.##")
问题是我得到了逗号(,)在中间,逗号我不想要。 此外,100.00表示100。我要100美元


请帮助

如果不需要逗号,请不要在格式字符串中放置逗号:

=Format(Fields!ClosingBalance.Value,"#.##")

尝试将格式字符串更改为
#.0,00
。这将为您提供两个固定的十进制数字。您的“逗号”在语言设置中。但是,您可以创建自己的区域性并将其分配给渲染器。

如果您想要100.00而不是100,则正确的
格式()是

=Format(Fields!ClosingBalance.Value,"0.00")

格式字符串
#
表示
显示字符,如果非零
0
表示
显示字符,包括零

接受回答是一种很好的形式。我忍不住注意到你问了74个问题,只有189个代表。那里有一些非常错误的地方。