本文介绍了ssrs十进制舍入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在ssrs报告中,
圆形输出(417.504,2)给出417.51
是否有任何功能或选项来获得我想要的舍入值
i希望它是圆的(417.504,2)= 417.50
谢谢..
In the ssrs Reports,
the output for round(417.504,2) is giving 417.51
is there any function or option to get the my desired Rounding value
i want it to be round(417.504,2)=417.50
Thank You..
推荐答案
Round(417.504, 2, MidpointRounding.AwayFromZero)
Dim n As Double = 417.506 '<-- input number
Dim a = Math.Round(n, 2) ' <--- will gives 417.51
Dim b = Math.Truncate(n * 100) / 100 ' <--- will gives 417.5
Dim c As Integer = Math.Ceiling(n) ' <--- will gives 418
Dim d = n.ToString("N2") ' <--- will gives 417.50
这篇关于ssrs十进制舍入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!