Float80
An extended-precision, floating-point value type.
@frozen struct Float80
Float80
is available on Intel when the target system supports an 80-bit long double type, and unavailable on Apple silicon.
Citizens in Swift
Conformances
protocol AdditiveArithmetic
A type with values that support addition and subtraction.
protocol BinaryFloatingPoint
A radix-2 (binary) floating-point type.
protocol CVarArg
A type whose instances can be encoded, and appropriately passed, as elements of a C
va_list
.protocol Comparable
A type that can be compared using the relational operators
<
,<=
,>=
, and>
.protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectable
A type that explicitly supplies its own mirror.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByFloatLiteral
A type that can be initialized with a floating-point literal.
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol FloatingPoint
A floating-point numeric type.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol LosslessStringConvertible
A type that can be represented as a string in a lossless, unambiguous way.
protocol Numeric
A type with values that support multiplication.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
protocol SignedNumeric
A numeric type with a negation operation.
protocol Strideable
A type representing continuous, one-dimensional values that can be offset and measured.
protocol TextOutputStreamable
A source of text-streaming operations.
Members
init(
) init(Float80
) Creates a new instance initialized to the given value.
init(Double
) Creates a new instance that approximates the given value.
init(Float
) Creates a new instance that approximates the given value.
init?(Substring
) init?<S>(S
) Creates a new instance from the given string.
init(Int
) init(Float16
) Creates a new instance that approximates the given value.
init<Source>(Source
) init?(exactly: Float80
) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly: Double
) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly: Float
) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?(exactly: Float16
) Creates a new instance initialized to the given value, if it can be represented without rounding.
init?<Source>(exactly: Source
) init(floatLiteral: Float80
) init(integerLiteral: Int64
) init(nan: Float80.RawSignificand, signaling: Bool
) Creates a NaN (“not a number”) value with the specified payload.
init(sign: FloatingPointSign, exponent: Int, significand: Float80
) init(sign: FloatingPointSign, exponentBitPattern: UInt, significandBitPattern: UInt64
) init(signOf: Float80, magnitudeOf: Float80
) static var exponentBitCount: Int
static var greatestFiniteMagnitude: Float80
static var infinity: Float80
static var leastNonzeroMagnitude: Float80
static var leastNormalMagnitude: Float80
static var nan: Float80
static var pi: Float80
static var signalingNaN: Float80
static var significandBitCount: Int
static var ulpOfOne: Float80
The unit in the last place of 1.0.
var binade: Float80
var customMirror: Mirror
A mirror that reflects the Float80 instance.
var debugDescription: String
A textual representation of the value, suitable for debugging.
var description: String
A textual representation of the value.
var exponent: Int
var exponentBitPattern: UInt
var isCanonical: Bool
var isFinite: Bool
var isInfinite: Bool
var isNaN: Bool
var isNormal: Bool
var isSignalingNaN: Bool
var isSubnormal: Bool
var isZero: Bool
var magnitude: Float80
var nextUp: Float80
var sign: FloatingPointSign
var significand: Float80
var significandBitPattern: UInt64
var significandWidth: Int
var ulp: Float80
static func * (Float80, Float80
) -> Float80 static func *= (inout Float80, Float80
) static func + (Float80, Float80
) -> Float80 static func += (inout Float80, Float80
) static func - (Float80
) -> Float80 static func - (Float80, Float80
) -> Float80 static func -= (inout Float80, Float80
) static func / (Float80, Float80
) -> Float80 static func /= (inout Float80, Float80
) func addProduct(Float80, Float80
) func advanced(by: Float80
) -> Float80 func distance(to: Float80
) -> Float80 func formRemainder(dividingBy: Float80
) func formSquareRoot(
) func formTruncatingRemainder(dividingBy: Float80
) func hash(into: inout Hasher
) func isEqual(to: Float80
) -> Bool func isLess(than: Float80
) -> Bool func isLessThanOrEqualTo(Float80
) -> Bool func negate(
) func round(FloatingPointRoundingRule
) func write<Target>(to: inout Target
) typealias Exponent
typealias Magnitude
typealias RawSignificand
Features
static func random(in: ClosedRange<Self>
) -> Self Returns a random value within the specified range.
static func random(in: Range<Self>
) -> Self Returns a random value within the specified range.
static func random<T>(in: ClosedRange<Self>, using: inout T
) -> Self Returns a random value within the specified range, using the given generator as a source for randomness.
static func random<T>(in: Range<Self>, using: inout T
) -> Self Returns a random value within the specified range, using the given generator as a source for randomness.
static func != (Self, Self
) -> Bool static func + (Self
) -> Self Returns the given number unchanged.
static func ... (Self
) -> PartialRangeFrom<Self> Returns a partial range extending upward from a lower bound.
static func ... (Self
) -> PartialRangeThrough<Self> Returns a partial range up to, and including, its upper bound.
static func ... (Self, Self
) -> ClosedRange<Self> Returns a closed range that contains both of its bounds.
static func ..< (Self
) -> PartialRangeUpTo<Self> Returns a partial range up to, but not including, its upper bound.
static func ..< (Self, Self
) -> Range<Self> Returns a half-open range that contains its lower bound but not its upper bound.
static func < (Self, Self
) -> Bool static func <= (Self, Self
) -> Bool static func == (Self, Self
) -> Bool static func == (Self, Self
) -> Bool static func > (Self, Self
) -> Bool static func >= (Self, Self
) -> Bool func round(
) func rounded(
) -> Self
Available in _Differentiation
Conformances
protocol Differentiable
A type that mathematically represents a differentiable manifold whose tangent spaces are finite-dimensional.
Members
Extension in JSONDecoding
Conformances
protocol JSONDecodable
A type that can be decoded from a JSON variant value.
Members
Extension in BSONDecoding
Conformances
protocol BSONDecodable
A type that can be decoded from a BSON variant value backed by some type of storage not particular to the decoded type.
Extension in RealModule
Conformances
protocol AlgebraicField
A type modeling an algebraic field. Refines the
SignedNumeric
protocol, adding division.protocol ElementaryFunctions
A type that has elementary functions available.
protocol Real
A type that models the real numbers.
protocol RealFunctions
Members
static func acos(Float80
) -> Float80 static func acosh(Float80
) -> Float80 static func asin(Float80
) -> Float80 static func asinh(Float80
) -> Float80 static func atan(Float80
) -> Float80 static func atan2(y: Float80, x: Float80
) -> Float80 static func atanh(Float80
) -> Float80 static func cos(Float80
) -> Float80 static func cosh(Float80
) -> Float80 static func erf(Float80
) -> Float80 static func erfc(Float80
) -> Float80 static func exp(Float80
) -> Float80 static func exp2(Float80
) -> Float80 static func expMinusOne(Float80
) -> Float80 static func gamma(Float80
) -> Float80 static func hypot(Float80, Float80
) -> Float80 static func log(Float80
) -> Float80 static func log(onePlus: Float80
) -> Float80 static func log10(Float80
) -> Float80 static func log2(Float80
) -> Float80 static func logGamma(Float80
) -> Float80 static func pow(Float80, Float80
) -> Float80 static func pow(Float80, Int
) -> Float80 static func root(Float80, Int
) -> Float80 static func sin(Float80
) -> Float80 static func sinh(Float80
) -> Float80 static func tan(Float80
) -> Float80 static func tanh(Float80
) -> Float80
Features
static func cosMinusOne(Self
) -> Self cos(x) - 1, computed in such a way as to maintain accuracy for small x.
static func sqrt(Self
) -> Self
Extension in JSONDecoding
Conformances
protocol JSONDecodable
A type that can be decoded from a JSON variant value.