]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/rational.hh
add Rational::to_double()
[lilypond.git] / flower / include / rational.hh
index 511b8c2460bdd279187e7b45af4c2e86e52065d3..5effd3787af9ef3249f37b9b24b5701b93058c7c 100644 (file)
@@ -45,7 +45,8 @@ public:
   void negate ();
   int to_int () const;
 
-  operator double () const;
+  operator double () const { return to_double (); }
+  double to_double () const;
 
   Rational operator - () const;
   /**