Rounding - entry.discountpercentage

Mar 23, 2006 1 Replies

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



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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required