Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

vbirds/Bignumber

Repository files navigation

CGMPBigInt Da Zheng Shu Ji Suan

Background

Da Zheng Shu Lei (gmpDa Zheng Shu Feng Zhuang )

Install

Xiang Mu Shi Yong Zhi Jie Jiang CGMPBigInt.h, CGMPBigInt.cpp, mini-gmp.h, mini-gmp.cBao Han Dao Zi Ji Xiang Mu Yuan Wen Jian Zhong Ji Ke , CGMPBigInt.h Wei Da Zheng Shu Feng Zhuang Lei ,Zai Shi Yong De Wen Jian Zhong Bao Han Tou Wen Jian Ji Ke Shi Yong

+-- CGMPBigInt.cpp # Da Zheng Shu Feng Zhuang Shi Xian Yuan Wen Jian
+-- CGMPBigInt.h # Da Zheng Shu Feng Zhuang Tou Wen Jian
+-- CMakeLists.txt # Ce Shi Gong Cheng cmake
+-- LICENSE
+-- main.cpp
+-- mini-gmp.c # gmp De Jian Hua Ban Ben ,Jie Kou He Zheng Shi De Yi Zhi ,Ci Shi Xian De Xing Neng Yi Jing Yuan Chao Da Bu Fen Ku ,Ru Bu Xiang Shi Yong Ku Zhi Jie Yong Ci Yuan Wen Jian Jiu Ke
+-- mini-gmp.h # gmp De Jian Hua Ban Ben ,Jie Kou He Zheng Shi De Yi Zhi ,Ci Shi Xian De Xing Neng Yi Jing Yuan Chao Da Bu Fen Ku ,Ru Bu Xiang Shi Yong Ku Zhi Jie Yong Ci Yuan Wen Jian Jiu Ke
+-- README.md

Usage

  • Jia /Jian /Cheng Chu /Qu Mo

    CGMPBigInt& Add(const CGMPBigInt& other);
    CGMPBigInt& Sub(const CGMPBigInt& other);
    CGMPBigInt& Mul(const CGMPBigInt& other);
    CGMPBigInt& Div(const CGMPBigInt& other);
    CGMPBigInt& MulRate(float fRatio);
    CGMPBigInt& DivRate(float fRatio);

    friend CGMPBigInt operator + (const CGMPBigInt& a, const CGMPBigInt& b);
    friend CGMPBigInt operator - (const CGMPBigInt& a, const CGMPBigInt& b);
    friend CGMPBigInt operator * (const CGMPBigInt& a, const CGMPBigInt& b);
    friend CGMPBigInt operator / (const CGMPBigInt& a, const CGMPBigInt& b);
    friend CGMPBigInt operator % (const CGMPBigInt& a, const CGMPBigInt& b);
  • Bi Jiao Da Xiao

    bool IsZero() const;
    bool Equal(const CGMPBigInt& other) const;
    bool BiggerOrEqual(const CGMPBigInt& other) const;
    bool Bigger(const CGMPBigInt& other) const;
    int Cmp(const CGMPBigInt& other) const ;
    bool Smaller(const CGMPBigInt& other) const;
    bool SmallerOrEqual(const CGMPBigInt& other) const;

    friend bool operator < (const CGMPBigInt& a, const CGMPBigInt& b);
    friend bool operator > (const CGMPBigInt& a, const CGMPBigInt& b);
    friend bool operator <= (const CGMPBigInt& a, const CGMPBigInt& b);
    friend bool operator >= (const CGMPBigInt& a, const CGMPBigInt& b);
  • Shu Chu Zi Fu Chuan

    void Retrieve(char src[256]);
    int ToString(char * str, int base = 10);
    std::string ToString();

Example

About

Da Zheng Shu Lei (gmpDa Zheng Shu Feng Zhuang ) BigNumber

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Packages

Contributors