Abs() private method

private Abs ( int self ) : object
self int
return object
示例#1
0
文件: Integer.cs 项目: yyyyj/ironruby
        public static RubyArray /*!*/ GcdLcm(int self, int other)
        {
            int gcd = SignedGcd(self, other);

            return(new RubyArray {
                ClrInteger.Abs(gcd), Lcm(self, other, gcd)
            });
        }
示例#2
0
文件: Integer.cs 项目: yyyyj/ironruby
 public static object /*!*/ Gcd(int self, int other)
 {
     return(ClrInteger.Abs(SignedGcd(self, other)));
 }