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
The Math.Floor() function should do the trick:
Math.Floor()
int interval = (int)Math.Floor(difference / increment);
See also: https://msdn.microsoft.com/de-de/library/e0b5f0xb%28v=vs.110%29.aspx