diff options
Diffstat (limited to 'pokemod/Frac.cpp')
| -rw-r--r-- | pokemod/Frac.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pokemod/Frac.cpp b/pokemod/Frac.cpp index 0553a534..f2efc7be 100644 --- a/pokemod/Frac.cpp +++ b/pokemod/Frac.cpp @@ -155,3 +155,8 @@ void PokeGen::PokeMod::Frac::Reduce() }
Log(String("Frac: Reduced to %u/%u", num, denom), PM_DEBUG_DEBUG);
}
+
+PokeGen::PokeMod::Frac::operator float() const
+{
+ return GetValue();
+}
|
