In my class I have this property:
public decimal Percentage
{
get;
set;
}
This value is displaying as a decimal. Something like this:
-0.0214444
I need to show it something like this:
-2.14444
How can I change to this format in my property?
Just multiply it by 100.
You can round it to a smaller number of decimal places:
Another way: