X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fgmprat.h;h=b92d5af85c7263081496850603b7688251a67270;hp=f5a2f1f6520f34170094ef8711cf77cffda89742;hb=f28146cf72fc68c8d3690814b1f89d47b8c4e7b9;hpb=ec45b44e3a44e12463c63ec09d63c648602ce866 diff --git a/src/gmprat.h b/src/gmprat.h index f5a2f1f..b92d5af 100644 --- a/src/gmprat.h +++ b/src/gmprat.h @@ -33,7 +33,7 @@ class Gmprat return "-" + operator-().Str(); } double p = Log10(); - if (isinf(p)) + if (std::isinf(p)) return "0"; int P = (int)p; @@ -122,7 +122,7 @@ inline std::ostream & operator<<(std::ostream & os, const Gmprat & fith) inline std::string Str(const Gmprat & g) {return g.Str();} inline double Log10(const Gmprat & g) {return g.Log10();} inline size_t Size(const Gmprat & g) {return g.Size();} - +inline Gmprat Abs(const Gmprat & g) {return g.Abs();} #endif //_GMPRAT_H