c# - Whats the best way to format this number? -
I have You can use: double and I want to format it with the following rules:
100 - & gt; 100 99.958443534 - & gt; 99.96 99.1 - & gt; 99.10
Decimal a = 99.9 4 9 99 99 99 M; Mathematics.Round (A, 2); // Returns 99.95
Comments
Post a Comment