public static BigFloat Abs(BigFloat value) => new BigFloat(BigInteger.Abs(value.Numerator), value.Denominator);
public BigFloat Abs() { numerator = BigInteger.Abs(numerator); return(this); }
// -------- 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); }
public static BigInteger Abs(this BigInteger value) { return(BigInteger.Abs(value)); }