<p>Is there a C# equivalent for the VB.NET <code>FormatNumber</code> function? </p>

<p>I.e.:</p>

<pre><code>JSArrayString += "^" + (String)FormatNumber(inv.RRP * oCountry.ExchangeRate, 2);
</code></pre>

You can use string formatters to accomplish the same thing.
```
```
double MyNumber = inv.RRP * oCountry.ExchangeRate;
JSArrayString += "^" + MyNumber.ToString("#0.00");
```
```