struct
Float80
Inheritance |
AbsoluteValuable, Comparable, CustomDebugStringConvertible, CustomStringConvertible, Equatable, FloatLiteralConvertible, Hashable, IntegerLiteralConvertible, SignedNumberType, Strideable
View Protocol Hierarchy →
|
---|---|
Import |
|
Initializers
Create an instance initialized to zero.
Declaration
init
()
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
.
FPIEEE80
)
Declaration
init
(
_builtinFloatLiteral
value
:
Builtin
.
FPIEEE80
)
Declaration
init
(
_builtinIntegerLiteral
value
:
Builtin
.
Int2048
)
Construct from an ASCII representation.
Returns the result of calling the POSIX function
strtold_l
using the "C" locale, unless
text
contains non-ASCII text or whitespace, or is not
completely consumed by the call. Otherwise, returns nil
.
See the strtold (3)
man page for details of
the exact format accepted.
Declaration
init
?(
_
text
:
String
)
Instance Variables
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
}
Static Methods
Instance Methods
Returns the sequence of values (self
, self + stride
, self +
stride + stride
, ... last) where last is the last value in
the progression less than or equal to end
.
Note: There is no guarantee that end
is an element of the sequence.
Declaration
func
stride
(
through
end
:
Float80
,
by
stride
:
Float80
.
Stride
) -
>
StrideThrough
<
Float80
>
Declared In
Strideable
Returns the sequence of values (self
, self + stride
, self +
stride + stride
, ... last) where last is the last value in
the progression that is less than end
.
Declaration
Declared In
Strideable
2 inherited items hidden. (Show all)
An extended-precision floating-point value type.