Formatting issue

Stimulsoft Reports.NET discussion
Post Reply
Tobias
Posts: 104
Joined: Mon Nov 24, 2008 8:44 am

Formatting issue

Post 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".
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Formatting issue

Post 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.
Post Reply