spire
.
math
Number
object
Number
extends
NumberInstances
with
Serializable
Convenient apply and implicits for Numbers
Linear Supertypes
Serializable
,
Serializable
,
NumberInstances
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
Number
Serializable
Serializable
NumberInstances
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
implicit
object
NumberAlgebra
extends
NumberIsField
with
NumberIsNRoot
with
NumberIsTrig
Definition Classes
NumberInstances
implicit
object
NumberIsReal
extends
NumberIsReal
Definition Classes
NumberInstances
def
apply
(
s:
String
)
:
Number
def
apply
(
n:
BigDecimal
)
:
Number
def
apply
(
n:
Double
)
:
Number
def
apply
(
n:
SafeLong
)
:
Number
def
apply
(
n:
BigInt
)
:
Number
def
apply
(
n:
Long
)
:
Number
def
apply
(
n:
Int
)
:
Number
def
apply
(
n:
Short
)
:
Number
def
apply
(
n:
Byte
)
:
Number
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
implicit
def
bigDecimalToNumber
(
n:
BigDecimal
)
:
Number
implicit
def
bigIntToNumber
(
n:
BigInt
)
:
Number
implicit
def
byteToNumber
(
n:
Byte
)
:
Number
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
()
implicit
def
doubleToNumber
(
n:
Double
)
:
Number
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
()
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
object
implicits
implicit
def
intToNumber
(
n:
Int
)
:
Number
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
implicit
def
longToNumber
(
n:
Long
)
:
Number
implicit
def
naturalToNumber
(
n:
Natural
)
:
Number
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
val
one
:
Number
implicit
def
safeLongToNumber
(
n:
SafeLong
)
:
Number
implicit
def
shortToNumber
(
n:
Short
)
:
Number
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
()
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
()
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
()
final
val
zero
:
Number
Inherited from
Serializable
Inherited from
Serializable
Inherited from
NumberInstances
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Convenient apply and implicits for Numbers