Protocol
Binary Floating Point A radix-2 (binary) floating-point type.
Declaration protocol BinaryFloatingPoint
Overview The Binary Floating Point
protocol extends the Floating Point
protocol with operations specific to floating-point binary types, as defined by the IEEE 754 specification . Binary Floating Point
is implemented in the standard library by Float
, Double
, and Float80
where available.
Topics
Initializers init (Float)
Creates a new instance from the given value, rounded to the closest possible representation.
Required. Default implementations provided.
init (Double)
Creates a new instance from the given value, rounded to the closest possible representation.
Required.
init (Float80)
Creates a new instance from the given value, rounded to the closest possible representation.
Required.
init <Source>(Source)
Creates a new instance from the given value, rounded to the closest possible representation.
Required.
init ?<Source>( exactly : Source)
Creates a new instance from the given value, if it can be represented exactly.
Required. Default implementations provided.
Instance Properties var binade : Self
The floating-point value with the same sign and exponent as this value, but with a significand of 1.0.
Required.