Rounding - entry.discountpercentage

I have a XML receipt with the following line.

"|" entry.discountpercentage "% Discount|" Entry.ExtendedDiscountNegative

Currently the value prints as 2 decimal place (eg. 15.21%). What is best way to round it so it just shows (eg. 15%)

Thanks

Reply to
Chas
Loading thread data ...

I have not tried this but what if you set the value of Entry.DiscountPercentage equal to a new variable with a datatype Long. Then use that as part of the text.

Entry.DiscountPercentage

Then place the variable in the ROW: "|" NewDiscountPercentage "% Discount|"

Rob

Reply to
Rob

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.