ghanshyam.mirani
ghanshyam.mirani

Reputation: 3101

Convert Decimal to int in Crystal Report Formula

i have used formula to generate a RowNumber for each Record formula is like this:

shared numbervar rownum; rownum := rownum + 1; rownum; But it displays decimal numbers : 1.00, 2.00, 3.00, 4.00 i want to display only Int numbers in RowNumber : 1,2,3,4,5

how can i do this?

Thanks in Advance

Upvotes: 1

Views: 7540

Answers (1)

craig
craig

Reputation: 26262

Select the formula field on the canvas, then click the Decrease Decimals toolbar icon twice.

You should the RecordNumber field instead of incrementing a variable--much less work.

Upvotes: 5

Related Questions