Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
My Crystal Report 需要将数字四舍五入到小数点后两位。我已经尝试过Round(55.815, 2),但它返回55.81而不是55.82. 我该如何解决这个问题?
Round(55.815, 2)
55.81
55.82
如果出于显示目的需要对小数进行四舍五入,只需使用“减少小数”图标:
试试这个 if Remainder(55.815 ,1) > 0.5 then Floor (55.815) + Remainder(55.815 ,1) else Floor (55.815 )+ Remainder(55.815 ,1) 这可能对你有帮助
if Remainder(55.815 ,1) > 0.5 then Floor (55.815) + Remainder(55.815 ,1) else Floor (55.815 )+ Remainder(55.815 ,1)