๐ ฟ๏ธFloatingPoint
ๅฎๆดๆฏๆดใๅ ๆธไน้คใ็ๅๅฎใ
.decimalPlaces() - ้ๅถๅฐๆธ้กฏ็คบไฝๆธใ
floating +โโจรท int - ่ Int ๅๅๅ้็ฎใ
// ๐
ฟ๏ธ FloatingPoint
protocol FloatingPoint {
// instance properties
var sign: FloatingPointSign { get }
var exponent: Self.Exponent { get }
var significand: Self { get }
// type properties
static var radix: Int { get }
}Swift โฉ Numbers and Basic Values โฉ Numeric Protocols โฉ FloatingPoint

inherited by BinaryFloatingPoint.
Last updated
Was this helpful?