I have a dollar amount, 23.15. I want to format it so that I can return just .15 or 15 as I want to place just the cents in an html <sup> tag.
To return dollars only, I used {0:C0} or without the $ sign {0:N0}
Edit: Apparently {0:C0} and {0:N0} will not work for me as they round to a whole number 🙁
If you need string with html tags you can use something like this:
Also if you want amount with cents instead of
use
Zero after ‘C’ in ‘{0:C0}’ format means number of signs after point.