Skip to Content
0
Former Member
Feb 14, 2011 at 03:25 PM

Removing Decimals on a String

2696 Views

I'm fairly new at Crystal, so I figured I'd ask away.

I'm using Crystal Reports XI R2.

The formula in question is:

shared stringvar array md;

shared Numbervar safety_row_no;

shared booleanvar suppress_exist;

if (suppress_exist = false) then

if (safety_row_no>=0 and safety_row_no<=7) then

(

md[safety_row_no+1];

)

On the report, it displays one decimal point, but I am wanting it to have zero decimal points. If this were a number field, I know I could do it fairly easily, but I am having trouble constructing a ToText statement (checked previous posts and am still having trouble).

Any help would be appreciated.