Float80

Inheritance AbsoluteValuable, Comparable, CustomStringConvertible, Equatable, FloatLiteralConvertible, Hashable, IntegerLiteralConvertible, SignedNumberType, Strideable, _Strideable View Protocol Hierarchy →
Import
  • import Swift

Initializers

init()

Create an instance initialized to zero.

Declaration

  • init()
init(_: Double)

Construct an instance that approximates other.

Declaration

init(_: Float)

Construct an instance that approximates other.

Declaration

init(_: Float80)

Create an instance initialized to value.

Declaration

init(_: Int)

Declaration

init(_: Int8)

Declaration

init(_: Int16)

Declaration

init(_: Int32)

Declaration

init(_: Int64)

Declaration

init(_: UInt)

Declaration

init(_: UInt8)

Declaration

init(_: UInt16)

Declaration

init(_: UInt32)

Declaration

init(_: UInt64)

Declaration

init(_bits:)

Declaration

  • init(_bits v: Builtin.FPIEEE80)
init(_builtinFloatLiteral:)

Declaration

  • init(_builtinFloatLiteral value: Builtin.FPIEEE80)
init(_builtinIntegerLiteral:)

Declaration

  • init(_builtinIntegerLiteral value: Builtin.Int2048)
init(floatLiteral:)

Create an instance initialized to value.

Declaration

init(integerLiteral:)

Create an instance initialized to value.

Declaration

  • init(integerLiteral value: Int64)
init?(_:)

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

Instance Variables

var description: String

A textual representation of self.

Declaration

  • var description: String { get }
var hashValue: Int

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 }
var value: Builtin.FPIEEE80

Declaration

  • var value: Builtin.FPIEEE80 { get set }

Static Methods

static func abs(_:)

Returns the absolute value of x.

Declaration

Instance Methods

func advancedBy(_:)

Returns a Self x such that self.distanceTo(x) approximates n.

Complexity: O(1).

Declaration

func distanceTo(_:)

Returns a stride x such that self.advancedBy(x) approximates other.

Complexity: O(1).

Declaration

func stride(through:by:)

Return the sequence of values (start, start + stride, start + 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

Declared In

Strideable
func stride(to:by:)

Return 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)