struct
Float
Inheritance |
AbsoluteValuable, CVarArgType, Comparable, Equatable, FloatLiteralConvertible, FloatingPointType, Hashable, IntegerLiteralConvertible, Printable, Reflectable, SignedNumberType, Strideable, _CVarArgPassedAsDouble, _Comparable, _SignedNumberType, _Strideable
View Protocol Hierarchy →
|
---|---|
Import |
|
Initializers
Declaration
init
(
_
v
:
Int
)
Declaration
init
(
_
v
:
Int8
)
Declaration
init
(
_
v
:
Int16
)
Declaration
init
(
_
v
:
Int32
)
Declaration
init
(
_
v
:
Int64
)
Declaration
init
(
_
v
:
UInt
)
Declaration
init
(
_
v
:
UInt8
)
Declaration
init
(
_
v
:
UInt16
)
Declaration
init
(
_
v
:
UInt32
)
Declaration
init
(
_
v
:
UInt64
)
Declaration
init
(
_bits
v
:
Builtin
.
FPIEEE32
)
Declaration
init
(
_builtinFloatLiteral
value
:
Builtin
.
FPIEEE80
)
Declaration
init
(
_builtinIntegerLiteral
value
:
Builtin
.
Int2048
)
Static Variables
Instance Variables
The IEEE 754 "class" of this type.
Declaration
var
floatingPointClass
:
FloatingPointClassification
{
get
}
The hash value.
Axiom: x == y
implies x.hashValue == y.hashValue
Note: the hash value is not guaranteed to be stable across different invocations of the same program. Do not persist the hash value across program runs.
Declaration
var
hashValue
:
Int
{
get
}
true
iff self
is zero, subnormal, or normal (not infinity
or NaN).
Declaration
var
isFinite
:
Bool
{
get
}
true
iff self
is normal (not zero, subnormal, infinity, or
NaN).
Declaration
var
isNormal
:
Bool
{
get
}
Static Methods
Instance Methods
Transform self
into a series of machine words that can be
appropriately interpreted by C varargs
Declaration
func
encode
() -
>
[
Word
]
Create an instance initialized to zero.
Declaration
init
()