RDLC format number function

I have values ​​in db:

10.4 33 42.87 1.01 22.1 8 

I know that I can format numbers in my RDLC reports, however, how can I make sure that the output will always be:

 10.40 33.00 42.87 1.01 22.10 8.00 

you will notice that I need to show two decimal points, even if the number does not have them,

+6
source share
4 answers

Argh .... google helped, it's pretty simple:

 =FormatNumber(Fields!SomeField.Value,2) 
+7
source

You can also use the Format property of your TextBox ; eg:

 Format = "f2" 

Using the format, you can use "c" to format the currency (i.e., "c2" ).

+6
source
 FormatCurrency(Expression as object, NumDigitsAfterZero as tristate, IncludingLeadingDigit as tristate, UwseParenseForNegativeNumbers as tristate, GroupDigits as tristate) as string 

I tried using the Number tab settings for the placeholder and did nothing. The above work.

+1
source

Right-click the [TextBox] control in the RDLC, TextBox, SelectNumber, CAtegory-Number, See Decimal Places - 2 properties, click Ok.

+1
source

All Articles