简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM