Scala Library
|
|
scala/math/Numeric.scala
]
trait
Numeric[T]
extends
Ordering[T]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), tryCompare, lteq, gteq, lt, gt, equiv, max, min, reverse, on, 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 |
Scala Library
|
|