I have a C# app that is calculating some numbers. I need to round down.
var increment = 1.25; var result = 50.45 - 23.70; // equals 26.75 int interval = d
Just try this..
int interval = Convert.ToInt32(Math.Floor(different/increment));