Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.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
Crystal reports 删除my crystal reports字符串变量的小数位数_Crystal Reports - Fatal编程技术网

Crystal reports 删除my crystal reports字符串变量的小数位数

Crystal reports 删除my crystal reports字符串变量的小数位数,crystal-reports,Crystal Reports,我的crystal report中有一个值为1800.667的字符串。但我只想在报告中显示1800。我正在使用下面的公式,但这不起作用。有什么想法吗 totext(tonumber({variable1}),0,"") 尝试: 如果int({FieldName}){FieldName}那么 2. 其他的 0 不工作有错误吗? ToText( ToNumber({variable1}), "#" ) IF int({FieldName})<>{FieldName}then 2 el

我的crystal report中有一个值为1800.667的字符串。但我只想在报告中显示1800。我正在使用下面的公式,但这不起作用。有什么想法吗

totext(tonumber({variable1}),0,"")
尝试:

如果int({FieldName}){FieldName}那么
2.
其他的
0

不工作
有错误吗?
ToText( ToNumber({variable1}), "#" )
IF int({FieldName})<>{FieldName}then
2
else 
0