Bugfixes, performance fixes, tears.
[ipdf/code.git] / src / gmprat.h
index f5a2f1f..b92d5af 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au