I have a situation where I need to display a double value rounded to two decimal places, but displayed without the decimal. There will be some situations where I will want to use the same code and display the double value differently, so I was hoping I could handle this by passing in a string format pattern.
For example, the double value might be: 11367.2232 I want the value to be: 1136722
Another example, the value might be 344576.3457 I want the value to be 34457635
A third example, the value might be 546788 I want the value to be 54678800
So, I want to do something this:
String.Format("{PATTERN}", dblCurrency);
Is there any formatting pattern that would both round to 2 decimal places and strip the decimal from being displayed?