/// <summary> /// Calls BN_cmp() /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { BigNumber rhs = obj as BigNumber; if ((object)rhs == null) { return(false); } return(Native.BN_cmp(this.ptr, rhs.ptr) == 0); }
/// <summary> /// Calls BN_cmp() /// </summary> /// <param name="other"></param> /// <returns></returns> public int CompareTo(BigNumber other) { return(Native.BN_cmp(this.ptr, other.ptr)); }