Ratio

trait Ratio[A <: Quantity[A], B <: Quantity[B]]

Defines an interface and partial implementation for types that represent a ratio between any two quantities

Defines an interface and partial implementation for types that represent a ratio between any two quantities

Type Params
A

Quantity A

B

Quantity B

Authors

garyKeorkunian

Since

0.1

class Object
trait Matchable
class Any
trait LikeRatio[A]
class Price[A]

Value members

Abstract methods

def base: A
def counter: B

Concrete methods

def convertToBase(q: B): A
def convertToCounter(q: A): B