Structure

Float80

An extended-precision, floating-point value type.

Topics

Initializers

init()

Creates a value initialized to zero.

init(UInt)

Creates the closest representable value to the given integer.

init(Float80)

Creates a new instance initialized to the given value.

init(UInt16)

Creates the closest representable value to the given integer.

init(UInt64)

Creates the closest representable value to the given integer.

init(Double)

Creates a new instance that approximates the given value.

init(Int)

Creates the closest representable value to the given integer.

init(Int16)

Creates the closest representable value to the given integer.

init(Int64)

Creates the closest representable value to the given integer.

init(Int32)

Creates the closest representable value to the given integer.

init(UInt8)

Creates the closest representable value to the given integer.

init(Int8)

Creates the closest representable value to the given integer.

init(Float)

Creates a new instance that approximates the given value.

init(UInt32)

Creates the closest representable value to the given integer.

init?<S>(S)

Creates a new instance from the given string.

init?(exactly: Float)

Creates a new instance initialized to the given value, if it can be represented without rounding.

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: Int64)

Creates a value that exactly represents the given integer.

init?(exactly: UInt16)

Creates a value that exactly represents the given integer.

init?(exactly: Int16)

Creates a value that exactly represents the given integer.

init?(exactly: Int32)

Creates a value that exactly represents the given integer.

init?(exactly: Int)

Creates a value that exactly represents the given integer.

init?(exactly: UInt32)

Creates a value that exactly represents the given integer.

init?(exactly: UInt64)

Creates a value that exactly represents the given integer.

init?(exactly: UInt8)

Creates a value that exactly represents the given integer.

init?(exactly: UInt)

Creates a value that exactly represents the given integer.

init?(exactly: Int8)

Creates a value that exactly represents the given integer.

init(floatLiteral: Float80)

Creates a new value from the given floating-point literal.

init(integerLiteral: Int64)

Creates a new value from the given integer literal.

init(nan: Float80.RawSignificand, signaling: Bool)

Creates a NaN (“not a number”) value with the specified payload.

init(sign: FloatingPointSign, exponent: Int, significand: Float80)

Creates a new value from the given sign, exponent, and significand.

init(sign: FloatingPointSign, exponentBitPattern: UInt, significandBitPattern: UInt64)

Creates a new instance from the specified sign and bit patterns.

init(signOf: Float80, magnitudeOf: Float80)

Creates a new floating-point value using the sign of one value and the magnitude of another.

Instance Properties

var binade: Float80

The floating-point value with the same sign and exponent as this value, but with a significand of 1.0.

var debugDescription: String

A textual representation of the value, suitable for debugging.

var description: String

A textual representation of the value.

var exponent: Int

The exponent of the floating-point value.

var exponentBitPattern: UInt

The raw encoding of the value’s exponent field.

var hashValue: Int

The number’s hash value.

var isCanonical: Bool

A Boolean value indicating whether the instance’s representation is in the canonical form.

var isFinite: Bool

A Boolean value indicating whether this instance is finite.

var isInfinite: Bool

A Boolean value indicating whether the instance is infinite.

var isNaN: Bool

A Boolean value indicating whether the instance is NaN (“not a number”).

var isNormal: Bool

A Boolean value indicating whether this instance is normal.

var isSignalingNaN: Bool

A Boolean value indicating whether the instance is a signaling NaN.

var isSubnormal: Bool

A Boolean value indicating whether the instance is subnormal.

var isZero: Bool

A Boolean value indicating whether the instance is equal to zero.

var magnitude: Float80

The magnitude of this value.

var nextDown: Float80

The greatest representable value that compares less than this value.

var nextUp: Float80

The least representable value that compares greater than this value.

var sign: FloatingPointSign

The sign of the floating-point value.

var significand: Float80

The significand of the floating-point value.

var significandBitPattern: UInt64

The raw encoding of the value’s significand field.

var significandWidth: Int

The number of bits required to represent the value’s significand.

var ulp: Float80

The unit in the last place of this value.

Type Properties

static var exponentBitCount: Int

The number of bits used to represent the type’s exponent.

static var greatestFiniteMagnitude: Float80

The greatest finite number representable by this type.

static var leastNormalMagnitude: Float80

The least positive normal number.

static var nan: Float80

A quiet NaN (“not a number”).

static var pi: Float80

The mathematical constant pi.

static var radix: Int

The radix, or base of exponentiation, for this floating-point type.

static var signalingNaN: Float80

A signaling NaN (“not a number”).

static var significandBitCount: Int

The available number of fractional significand bits.

static var ulpOfOne: Float80

The unit in the last place of 1.0.

Instance Methods

func addProduct(Float80, Float80)

Adds the product of the two given values to this value in place, computed without intermediate rounding.

func addingProduct(Float80, Float80)

Returns the result of adding the product of the two given values to this value, computed without intermediate rounding.

func advanced(by: Float80)

Returns a new value advanced by the given distance.

func distance(to: Float80)

Returns the distance from this value to the specified value.

func formSquareRoot()

Replaces this value with its square root, rounded to a representable value.

func formTruncatingRemainder(dividingBy: Float80)

Replaces this value with the remainder of itself divided by the given value using truncating division.

func isEqual(to: Float80)

Returns a Boolean value indicating whether this instance is equal to the given value.

func isLess(than: Float80)

Returns a Boolean value indicating whether this instance is less than the given value.

func isLessThanOrEqualTo(Float80)

Returns a Boolean value indicating whether this instance is less than or equal to the given value.

func isTotallyOrdered(belowOrEqualTo: Float80)

Returns a Boolean value indicating whether this instance should precede or tie positions with the given value in an ascending sort.

func negate()

Replaces this value with its additive inverse.

func negate()

Replaces this value with its additive inverse.

func remainder(dividingBy: Float80)

Returns the remainder of this value divided by the given value.

func round()

Rounds this value to an integral value using “schoolbook rounding.”

func round(FloatingPointRoundingRule)

Rounds the value to an integral value using the specified rounding rule.

func rounded()

Returns this value rounded to an integral value using “schoolbook rounding.”

func rounded(FloatingPointRoundingRule)

Returns this value rounded to an integral value using the specified rounding rule.

func squareRoot()

Returns the square root of the value, rounded to a representable value.

func truncatingRemainder(dividingBy: Float80)

Returns the remainder of this value divided by the given value using truncating division.

Type Methods

static func maximum(Float80, Float80)

Returns the greater of the two given values.

static func maximumMagnitude(Float80, Float80)

Returns the value with greater magnitude.

static func minimum(Float80, Float80)

Returns the lesser of the two given values.

static func minimumMagnitude(Float80, Float80)

Returns the value with lesser magnitude.

Operator Functions

static func !=(Float80, Float80)

Returns a Boolean value indicating whether two values are not equal.

static func +(Float80)

Returns the given number unchanged.

static func -(Float80)

Returns the additive inverse of the specified value.

static func ...(Float80)

Returns a partial range up to, and including, its upper bound.

static func ...(Float80)

Returns a partial range extending upward from a lower bound.

static func ..<(Float80)

Returns a partial range up to, but not including, its upper bound.

static func <=(Float80, Float80)

Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

static func >(Float80, Float80)

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >=(Float80, Float80)

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.