If you need a string with html tags, you can use something like this:
var decimalValue = 23.15m; string value2 = decimalValue.ToString("$ #.<sup>##</sup>");
Also if you want a quantity with cents instead
var value = String.Format("{0:C0}", decimalValue);
using
var value = String.Format("{0:C2}", decimalValue);
Zero after 'C' in the format '{0: C0}' means the number of characters after the period.
source share