Use Math.Floor if you want to round down tha value, or Math.Round if you want to get an exact round. Math.Truncate simply remove the decimal part of the number,so you get bad results for negative numbers:
var result= Math.Floor(number * 100) / 100;
Math.Floor always return the smallest integral value that is lesser (Floor ) or greater (Ceiling) than the specified value. So you don't get a correct rounding. Example:
Math.Floor(1.127 * 100) / 100 == 1.12 //should be 1.13 for an exact round
Math.Ceiling(1.121 * 100) / 100 == 1.13 //should be 1.12 for an exact round
Always prefer the version of Math.Round containing the mid-point rounding param. This param specify how to handle mid-point values (5) as last digit.
If you don't specify AwayFromZero as the value for param, you'll get the default behaviour, which is ToEven.
For example, using ToEven as rounding method, you get:
Math.Round(2.025,2)==2.02
Math.Round(2.035,2)==2.04
instead, using MidPoint.AwayFromZero param:
Math.Round(2.025,2,MidpointRounding.AwayFromZero)==2.03
Math.Round(2.035,2,MidpointRounding.AwayFromZero)==2.04
So, for a normal rounding, it's best to use this code:
var value=2.346;
var result = Math.Round(value, 2, MidpointRounding.AwayFromZero);