Contents

BinaryFloatingPoint

A radix-2 (binary) floating-point type.

Declaration

protocol BinaryFloatingPoint : ExpressibleByFloatLiteral, FloatingPoint

Overview

The BinaryFloatingPoint protocol extends the FloatingPoint protocol with operations specific to floating-point binary types, as defined by the IEEE 754 specification. BinaryFloatingPoint is implemented in the standard library by Float, Double, and Float80 where available.

Topics

Converting Floating-Point Values

Converting with No Loss of Precision

Creating a Random Value

Working with Binary Representation

Initializers

Instance Methods

Default Implementations

See Also

Floating Point