Articles in this section

How to Display Decimal Places in Bold Reports

Published:
Updated:

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

  1. Open the report in the Bold Reports Report Designer.
  2. Select the report item (such as a text box or table cell) that displays the numeric field.
    image.png
  3. Open the Format option for that item.
  4. Set Decimal Places to the number of digits you want to display.
    image.png
  5. Click Save, then preview the report to confirm the value field shows the decimal places you set.
    image.png

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.

  1. Select the text box and edit its expression.

    image.png

  2. Enter an expression that wraps the value in the Round function. 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 (&).

    image.png

  3. Change the 2 to the number of decimal places you need.

  4. Replace value and DataSet1 with your own field and dataset names.

  5. Click Save, then preview the report to confirm the text shows only the decimal places you set.

    image.png

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.

Related articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied