Page 1 of 1

Negative Pattern for Percentage Format

Posted: Tue Apr 14, 2009 6:55 pm
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!

Negative Pattern for Percentage Format

Posted: Fri Apr 17, 2009 1:19 am
by Jan
Hello,

Please use following expression:

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

Thank you.