// Rounds a Decimal to an integer value. The Decimal argument is rounded // towards negative infinity. // public static Decimal Floor(Decimal d) { DecCalc.VarDecInt(ref d); return(d); }