<p>What is the difference between <a href="http://msdn.microsoft.com/en-us/library/9a6a2sxy.aspx" rel="noreferrer"><code>Math.Floor()</code></a> and <a href="http://msdn.microsoft.com/en-us/library/system.math.truncate.aspx" rel="noreferrer"><code>Math.Truncate()</code></a> in .NET?</p>

```
Math.Floor
```
rounds down,
```
Math.Ceiling
```
rounds up, and
```
Math.Truncate
```
rounds towards zero. Thus,
```
Math.Truncate
```
is like
```
Math.Floor
```
for positive numbers, and like
```
Math.Ceiling
```
for negative numbers. Here's the
reference
.
For completeness,
```
Math.Round
```
rounds to the nearest integer. If the number is exactly midway between two integers, then it rounds towards the even one.
Reference.
See also:
Pax Diablo's answer
. Highly recommended!