trait
ExactNumeric[T] extends AnyRef
Abstract Value Members
-
abstract
def
minus(x: T, y: T): T
-
abstract
val
n: Numeric[T]
-
abstract
def
plus(x: T, y: T): T
-
abstract
def
times(x: T, y: T): T
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
fromInt(x: Int): T
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
def
negate(x: T): T
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
lazy val
one: T
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toInt(x: T): Int
-
def
toLong(x: T): Long
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
lazy val
zero: T
Numeric operations with overflow checks. Raise exception when overflow is detected. Each instance of this typeclass overrides three methods
plus
,minus
,times
. All other methods are implemented by delegating to the corresponding Numeric instance from standard Scala library. This trait is used in core IR to avoid implicitly using standard scala implementations