How to Display Decimal Places in Bold Reports
To control decimal places in Bold Reports, select the report item, open the Format option, and set Decimal Places to the number of digits you want. To round decimals inside a text string, use a Round expression such as =Round(Sum(Fields!value.Value, "DataSet1"), 2). Note that Round uses banker’s rounding, so 2.5 becomes 2.
When to use this
Use this when numeric values show too many or too few decimal digits. For example, a total that renders as 1234.56789 when you need 1234.57. The Format option handles a numeric field directly, while a Round expression is for numbers embedded in a text string.
Steps
Method 1: Set decimal places with the Format option
- Open the report in the Bold Reports Report Designer.
- Select the report item (such as a text box or table cell) that displays the numeric field.
- Open the Format option for that item.
- Set Decimal Places to the number of digits you want to display.
- Click Save, then preview the report to confirm the
valuefield shows the decimal places you set.
Method 2: Fix decimal places inside a text value
Use this when the number is part of a larger text string, such as Total is: 1234.57.
-
Select the text box and edit its expression.
-
Enter an expression that wraps the value in the
Roundfunction. The second argument is the number of decimal places:="Total is: " & Round(Sum(Fields!value.Value, "DataSet1"), 2)Note: The
&is the Visual Basic string-concatenation operator. Type a plain ampersand (&). -
Change the
2to the number of decimal places you need. -
Replace
valueandDataSet1with your own field and dataset names. -
Click Save, then preview the report to confirm the text shows only the decimal places you set.
Result
The selected field displays the exact number of decimal places you configured. With the Format option, the field is rounded for display; with the Round expression, the value inside the text string is rounded to the digits you specified.