finished incorporating messaging into the UI window and added another custom control to make updating the UI easier
This commit is contained in:
@@ -9,6 +9,8 @@ case class Fraction(val num : Int, val denom : Int) extends Ordered[Fraction] {
|
||||
override def compare(f : Fraction) : Int = {
|
||||
(num * f.denom) compare (f.num * denom)
|
||||
}
|
||||
|
||||
def toDouble = 1.0 * num / denom
|
||||
}
|
||||
|
||||
class IntFraction(val x : Int) extends AnyVal {
|
||||
|
||||
Reference in New Issue
Block a user