init<Source>(Source)
Creates a new value, rounded to the closest possible representation.
新しい値を作成します、最も近い可能な表現へ丸められます。
init(Int)
Creates a new value, rounded to the closest possible representation.
新しい値を作成します、最も近い可能な表現へ丸められます。
Availability
Technology
@frozen struct Float
init<Source>(Source)
init(Int)
init?<S>(S)
init<Source>(Source)
init<Source>(Source)
init(Double)
init(Float)
init(Float80)
init(CGFloat)
init(signOf : Float, magnitudeOf : Float)
init(sign: FloatingPointSign, exponent: Int, significand: Float)
nil
if the value passed can't be represented without any loss of precision.
これらのイニシャライザは、渡された値が何ら精度の損失なしに表現できないならばnil
という結果になります。
init?<Source>(exactly: Source)
init?(exactly: Double)
init?(exactly: Float)
init?(exactly: Float80)
init?<Source>(exactly: Source)
static func random(in: Range<Float>) -> Float
static func random<T>(in: Range<Float>, using: inout T) -> Float
static func random(in: ClosedRange<Float>) -> Float
static func random<T>(in: ClosedRange<Float>, using: inout T) -> Float
func addingProduct (Float, Float) -> Float
func addProduct (Float, Float)
func squareRoot () -> Float
func formSquareRoot ()
func remainder(dividingBy : Float) -> Float
func formRemainder (dividingBy : Float)
func truncatingRemainder (dividingBy : Float) -> Float
func formTruncatingRemainder (dividingBy : Float)
func negate()
func rounded() -> Float
func rounded(FloatingPointRoundingRule) -> Float
func round()
func round(FloatingPointRoundingRule)
func isEqual (to: Float) -> Bool
func isLess (than: Float) -> Bool
func isLessThanOrEqualTo (Float) -> Bool
func isTotallyOrdered (belowOrEqualTo : Float) -> Bool
static func maximum(Float, Float) -> Float
static func maximumMagnitude (Float, Float) -> Float
static func minimum(Float, Float) -> Float
static func minimumMagnitude (Float, Float) -> Float
var magnitude: Float
var sign: FloatingPointSign
typealias Float.Magnitude
var ulp: Float
var significand: Float
var exponent: Int
var nextUp : Float
var nextDown : Float
var binade: Float
static var pi: Float
static var infinity: Float
static var greatestFiniteMagnitude : Float
static var nan: Float
static var signalingNaN : Float
static var ulpOfOne : Float
static var leastNormalMagnitude : Float
static var leastNonzeroMagnitude : Float
static var zero: Float
var bitPattern : UInt32
var significandBitPattern : UInt32
var significandWidth : Int
var exponentBitPattern : UInt
static var significandBitCount : Int
static var exponentBitCount : Int
static var radix: Int
init(bitPattern : UInt32)
init(sign: FloatingPointSign, exponentBitPattern : UInt, significandBitPattern : UInt32)
init(nan: Float.RawSignificand, signaling: Bool)
typealias Float.Exponent
typealias Float.RawSignificand
var isZero : Bool
var isFinite : Bool
var isInfinite : Bool
var isNaN : Bool
var isSignalingNaN : Bool
var isNormal : Bool
var isSubnormal : Bool
var isCanonical : Bool
var floatingPointClass : FloatingPointClassification
func encode(to: Encoder)
init(from: Decoder)
static func ..< (Float, Float) -> Range<Float>
static func ... (Float, Float) -> ClosedRange<Float>
func hash(into: inout Hasher)
var description: String
var debugDescription : String
var customMirror : Mirror
Float
instance.
Float
インスタンスを反映するミラー。
var hashValue : Int
struct Float.SIMD2Storage
struct Float.SIMD4Storage
struct Float.SIMD8Storage
struct Float.SIMD16Storage
struct Float.SIMD32Storage
struct Float.SIMD64Storage
init()
init(integerLiteral : Int64)
init(floatLiteral : Float)
init(integerLiteral : Float)
func advanced(by: Float) -> Float
func distance(to: Float) -> Float
func write<Target>(to: inout Target)
init(NSNumber)
Deprecated
非推奨
var customPlaygroundQuickLook : _PlaygroundQuickLook
Float
instance.
Float
インスタンスのためのあつらえのプレイグラウンド「クイックルック」。
typealias Float.FloatLiteralType
typealias Float.IntegerLiteralType
typealias Float.RawExponent
typealias Float.Stride
init(Float16)
init?(exactly: Float16)
init?<Source>(exactly: Source)
AnimatableData
BNNSScalar
BinaryFloatingPoint
BindableData
CKRecordValueProtocol
CustomDebugStringConvertible
CustomReflectable
CustomStringConvertible
Decodable
Encodable
ExpressibleByIntegerLiteral
Hashable
LosslessStringConvertible
MLShapedArrayScalar
SIMDScalar
Strideable
TextOutputStreamable
VectorArithmetic
vDSP_DiscreteFourierTransformable
vDSP_FloatingPointBiquadFilterable
vDSP_FloatingPointConvertable
vDSP_FloatingPointDiscreteFourierTransformable
vDSP_FloatingPointGeneratable
struct Int
struct Double