Check out example codes for "c# format decimal as currency". It will help you in understanding the concepts better.

Code Example 1

private decimal _amount;

public string FormattedAmount
{
    get { return string.Format("{0:C}", _amount); }
}

Code Example 2

private decimal? _amount;
// For nullable decimals
public string FormattedAmount
{
    get
    {
         return _amount == null ? "null" : string.Format("{0:C}", _amount.Value);
    }
}

Learn ReactJs, React Native from akashmittal.com