Initializerpureswift.bluetooth 7.2.0Bluetooth
init(_:)
SFloat.swift:15- iOS
- 14.0+
- macOS
- unavailable
- Mac Catalyst
- unavailable
- tvOS
- 14.0+
- watchOS
- 7.0+
init(_ float: Float16)
init(_ float: Float16)
import Bluetooth
Pure Swift Bluetooth Definitions.
@frozen struct SFloat
IEEE-11073 16-bit SFLOAT
@frozen struct Float16
A half-precision (16b), floating-point value type.
init()
Creates a value initialized to zero.
init(_ value: Float)
init(bitPattern: UInt16)
Creates a new value with the given bit pattern.
init(from decoder: any Decoder) throws
var bitPattern: UInt16 { get }
The bit pattern of the value’s encoding.
var byteSwapped: SFloat { get }
A representation of this float with the byte order swapped.
var description: String { get }