Condition ">" in a crosstab

Stimulsoft Reports.NET discussion
Post Reply
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Condition ">" in a crosstab

Post by Jennypi »

Hi,

I'm trying to set up a condition in a crosstab.
I defined the condition like this:

Code: Select all

value>3.5
The problem is that I'm getting this error message:
Sans titre.png
Sans titre.png (4.84 KiB) Viewed 1626 times
Why can't I use the > operator with a decimal??

If I put

Code: Select all

value >3
it is working perfectly.

Thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Condition ">" in a crosstab

Post by Alex K. »

Hello,

Please try to use the following expression:

Code: Select all

value > 3.5m
Thank you.
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Re: Condition ">" in a crosstab

Post by Jennypi »

Working perfectly, thank you!
What is the "m" for?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Condition ">" in a crosstab

Post by Alex K. »

Hello,

If you want a numeric real literal to be treated as decimal, use the suffix m or M.

https://msdn.microsoft.com/en-us/librar ... 2147217396

Thank you.
Post Reply