Numbers with two and four decimals

Stimulsoft Reports.WEB discussion
Post Reply
CristinaOrtegaIb
Posts: 2
Joined: Wed Jun 15, 2016 12:13 pm

Numbers with two and four decimals

Post by CristinaOrtegaIb »

Hello

I need to have numbers with two and four decimals. I can see at the text format that you can choose that, but it's applied to all the numbers. How can i do this?

Regards,
Cristina
CristinaOrtegaIb
Posts: 2
Joined: Wed Jun 15, 2016 12:13 pm

Re: Numbers with two and four decimals

Post by CristinaOrtegaIb »

i found it custom format #.0000
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Numbers with two and four decimals

Post by Alex K. »

Hello,

As a way, you can use the following expression:

Code: Select all

{YourCondition ? DataSourceName.ColumnName.ToString("N2") : DataSourceName.ColumnName.ToString("N4")}
Thank you.
Post Reply