Page 1 of 1

Formatting issue

Posted: Thu Sep 15, 2011 9:30 am
by Tobias
I have a footer-field with:

{Sum((Items.Total+Items.Discount))}

And I've set this to number-format with 2 digits.

It correctly prints: "10.70"

If I change it to:

{Sum((Items.Total+Items.Discount) / 1.07m)}

I would expect to get "10.00" but it only prints "10".

Formatting issue

Posted: Fri Sep 16, 2011 2:16 am
by HighAley
Hello.
Tobias wrote:I have a footer-field with:

{Sum((Items.Total+Items.Discount))}

And I've set this to number-format with 2 digits.

It correctly prints: "10.70"

If I change it to:

{Sum((Items.Total+Items.Discount) / 1.07m)}

I would expect to get "10.00" but it only prints "10".
Please, try to use this expression:

Code: Select all

{Sum((Items.Total+Items.Discount) / 1.07f)}
Thank you.