Negative Pattern for Percentage Format

Stimulsoft Reports.NET discussion
Post Reply
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Negative Pattern for Percentage Format

Post by ptabkra »

Hi all,

I need to display (15 %) and not -15% on the report but Stimulsoft has only -n% -n % and -%n formats available.

is there any way i can display my data as ( n %) for negative values? note on retaining 2-decimal places display and the grouping for comma-separation.

Would really appreciate any help. Thanks!
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Negative Pattern for Percentage Format

Post by Jan »

Hello,

Please use following expression:

{datasource.value < 0 ? "(" + datasource.value + " % )" : datasource.value + " %" }

Thank you.
Post Reply