Hi
I have data with only 2 decimal places however on my report I would like it to display with 3 decimal places. The third decimal place I would like to be 0
Decimal Places
Re: Decimal Places
Hi Labucd,
Please try the following expression:
Thank you,
Edward
Please try the following expression:
Code: Select all
{String.Format("{0:0.000}", DataSourceName.DecimalValueColumn) }
Edward
Re: Decimal Places
I am still getting 2. The data is only 2 decimals, I would just like to add the 0
{String.Format("{0:0.000}", cq1.Line_Foreign_Amount) }
{String.Format("{0:0.000}", cq1.Line_Foreign_Amount) }
Re: Decimal Places
Hi Laducd,
It maybe the case when the type of that cq1.Line_Foreign_Amount column is not a numeric/decimal but some other type. That would be an explanation on why that did not work. There is an easy way to check in the designer:
Thank you,
Edward
It maybe the case when the type of that cq1.Line_Foreign_Amount column is not a numeric/decimal but some other type. That would be an explanation on why that did not work. There is an easy way to check in the designer:
Thank you,
Edward
Re: Decimal Places
Ok I changed it to Decimal format, however I am now getting too many 0.
-12937.5000000000
-12937.5000000000
Re: Decimal Places
I figured it out, thanks for your help
Re: Decimal Places
Okay, thank you for letting us know about this.