get only integer from decimal c# code example Example: csharp get integer part of number Math.Truncate(number)