.net - Difference between Math.Floor() and Math.Truncate() - Stack Overflow
What is the difference between Math.Floor() and Math.Truncate() in .NET? ... They are functionally equivalent with positive numbers. The difference is in how they handle negative numbers. For example: Math.Floor(2.5) = 2 Math.Truncate(2.5) = 2 Math.Floor(...