Rounds the floating point value up to 2 decimal places. The value. The rounded result.
(float value)
| 75 | /// <param name="value">The value.</param> |
| 76 | /// <returns>The rounded result.</returns> |
| 77 | public static float RoundTo2DecimalPlaces(float value) |
| 78 | { |
| 79 | return (float)Math.Round(value * 100) / 100; |
| 80 | } |
| 81 | |
| 82 | /// <summary> |
| 83 | /// Rounds the floating point value up to 3 decimal places. |
no test coverage detected