报表查看器 - 设置文本框值的小数位 [英] Report Viewer - Setting the decimal places for a textbox value
本文介绍了报表查看器 - 设置文本框值的小数位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用报告查看器控件 (rdlc) 生成报告.我的一列有值
I'm using Report Viewer Control (rdlc) to generate reports. One of my columns have the value
=AVG(Fields!Reading.Value, "CellReading_Reading")
我得到的值有 10 个或更多小数位.但我想把它四舍五入到小数点后三位.这样做的表达是什么?
I'm getting the value with 10 or more decimal places. But i want to round it off to 3 decimal places. What is the expression for doing this?
谢谢.自然价值
推荐答案
FormatNumber(AVG(Fields!Reading.Value, "CellReading_Reading"),3)
这篇关于报表查看器 - 设置文本框值的小数位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文