BinaryFloatingPoint

public extension BinaryFloatingPoint
  • Returns a Double value for this BinaryFloatingPoint object; either a precise conversion, or an approximate conversion if an exact one isn’t available for this type.

    Declaration

    Swift

    func toDouble() -> Double?

    Return Value

    A Double value, if one could be converted.

  • Undocumented

    Declaration

    Swift

    func toScalar<ScalarType>(type: ScalarType) -> ScalarType? where ScalarType : SIMDScalar