Truncate Two decimal places without rounding

value = Math.Truncate(100 * value) / 100;

Beware that fractions like these cannot be accurately represented in floating point.

Leave a Comment