Page 1 of 1

Numbers with two and four decimals

Posted: Wed Jun 15, 2016 12:17 pm
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

Re: Numbers with two and four decimals

Posted: Wed Jun 15, 2016 12:36 pm
by CristinaOrtegaIb
i found it custom format #.0000

Re: Numbers with two and four decimals

Posted: Wed Jun 15, 2016 12:51 pm
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.