예제 #1
0
 public static BigFloat Abs(BigFloat value)
 => new BigFloat(BigInteger.Abs(value.Numerator), value.Denominator);
예제 #2
0
 public BigFloat Abs()
 {
     numerator = BigInteger.Abs(numerator);
     return(this);
 }
예제 #3
0
        // -------- SECTION: public static methods -----------------*
        #region Public Static Methods

        public static BigRational Abs(BigRational r)
        {
            return (r.m_numerator.Sign < 0 ? new BigRational(BigInteger.Abs(r.m_numerator), r.Denominator) : r);
        }
예제 #4
0
 public static BigInteger Abs(this BigInteger value)
 {
     return(BigInteger.Abs(value));
 }