]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/rational.hh
Merge branch 'master' into nested-bookparts
[lilypond.git] / flower / include / rational.hh
index ac1a6d12fc1e0ae01eccc2bb3d9d6ed65cfd83b1..969d0121470db512f58f342046fd5293c735ad29 100644 (file)
@@ -3,15 +3,14 @@
 
   source file of the Flower Library
 
-  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef RATIONAL_HH
 #define RATIONAL_HH
 
 #include "std-string.hh"
-
-#include "std-string.hh"
+#include <limits.h>
 
 /**
    Rational numbers.  Included is support for + and - infinity.
@@ -47,7 +46,8 @@ public:
   void negate ();
   int to_int () const;
 
-  operator double () const;
+  operator double () const { return to_double (); }
+  double to_double () const;
 
   Rational operator - () const;
   /**