scala

trait Numeric

[source: scala/Numeric.scala]

trait Numeric[T]
extends Ordering[T]
Direct Known Subclasses:
Fractional, Integral, Numeric.BigDecimalIsConflicted

Method Summary
def abs (x : T) : T
abstract def fromInt (x : Int) : T
abstract def minus (x : T, y : T) : T
implicit def mkNumericOps (lhs : T) : Ops
abstract def negate (x : T) : T
def one : T
abstract def plus (x : T, y : T) : T
def signum (x : T) : Int
abstract def times (x : T, y : T) : T
abstract def toDouble (x : T) : Double
abstract def toFloat (x : T) : Float
abstract def toInt (x : T) : Int
abstract def toLong (x : T) : Long
def zero : T
Methods inherited from Ordering
compare (abstract), lteq, gteq, lt, gt, equiv, max, min, reverse, mkOrderingOps
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
class Ops (lhs : T) extends AnyRef
Method Details
abstract def plus(x : T, y : T) : T

abstract def minus(x : T, y : T) : T

abstract def times(x : T, y : T) : T

abstract def negate(x : T) : T

abstract def fromInt(x : Int) : T

abstract def toInt(x : T) : Int

abstract def toLong(x : T) : Long

abstract def toFloat(x : T) : Float

abstract def toDouble(x : T) : Double

def zero : T

def one : T

def abs(x : T) : T

def signum(x : T) : Int

implicit def mkNumericOps(lhs : T) : Ops