cancel
Showing results for 
Search instead for 
Did you mean: 

Removing decimals for numeric field

Former Member
0 Kudos

I have a field year which is string type coming from db side.So I converted that to number and adding 1 more year to that to show like this:

 Year:2014-2015 

Below is the formula.

'Year' & ':' & tonumber({FocusOnCustomer.YEAR})&'-'&(tonumber({FocusOnCustomer.YEAR})+1) 

Everything is working fine in designer.But when I view the report in cr viewer I am getting data like this.

2,014.00-2,015.00 

I want to remove decimals and comas

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Kalyan,

Change the code to:

'Year' & ':' & totext(tonumber({FocusOnCustomer.YEAR}),0,"") &'-'& Totext((tonumber({FocusOnCustomer.YEAR})+1),0,"")

-Abhilash

Answers (0)