If your source variable is declared as int, then one of the possible solutions is to divide by "100 m" instead of "100". Otherwise, it will perform integer division. eg:
int originalValue = 80; string yourValue = (originalValue / 100m).ToString("C2");
This will set yourValue to $ 0.80. If you do not specify "m", it will set the value to "0.00".
NOTE. "m" tells the compiler to treat 100 as a decimal number, and an implicit conversion will occur with originalValue as part of the division.
source share