IronRuby.Builtins.DecimalOps.ToInt C# (CSharp) Method

ToInt() private method

private ToInt ( decimal self ) : object
self decimal
return object
        public static object ToInt(decimal self) {
            decimal rounded;
            if (self >= 0) {
                rounded = Decimal.Floor(self);
            } else {
                rounded = Decimal.Ceiling(self);
            }

            return Protocols.Normalize(rounded);
        }