Partial View Currency Format

Hi all

I am displaying an integer as a string and adding a $ to the start of the string to show that it is a currency.

 @if (p.GetPropertyValue<string>("salePrice") == "0")
                {
                    <span class="price">TBA</span>
                }
                else
                {
                   <span class="price">[email protected]("salePrice")</span>
                }

 

I was wondering if there is a way to format the saleprice directly to a currency format.

Thanks in advance

Hugh


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/47977-partial-view-currency-format