I need to get the left hand side integer value from a decimal or double. For Ex: I need to get the value 4 from 4.6. I tried using Math.Floor function but it\'s returning a
Floor leaves it as a double so you can do more double calculations with it.
If you want it as an int, cast the result of floor as an int.
Don't cast the original double as an int because the rules for floor are different (IIRC) for negative numbers.