init()
Creates a decimal initialized to
0
.
0
に初期化される10進数を作成します。
Availability 有効性
Technology
struct Decimal
init()
0
.
0
に初期化される10進数を作成します。
init(sign: FloatingPointSign, exponent: Int, significand: Decimal)
init(_exponent: Int32, _length: UInt32, _isNegative : UInt32, _isCompact : UInt32, _reserved: UInt32, _mantissa: (UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16))
init(Double)
init(floatLiteral : Double)
init?<T>(exactly: T)
init(Int)
init(Int8)
init(Int16)
init(Int32)
init(Int64)
init(integerLiteral : Int)
init(UInt)
init(UInt8)
init(UInt16)
init(UInt32)
init(UInt64)
init(signOf : Decimal, magnitudeOf : Decimal)
func NSDecimalCopy (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>)
func NSDecimalString (UnsafePointer<Decimal>, Any?) -> String
static func * (Decimal, Decimal) -> Decimal
static func *= (inout Decimal, Decimal)
static func + (Decimal, Decimal) -> Decimal
static func += (inout Decimal, Decimal)
static func - (Decimal, Decimal) -> Decimal
static func -= (inout Decimal, Decimal)
static func / (Decimal, Decimal) -> Decimal
static func /= (inout Decimal, Decimal)
func pow(Decimal, Int) -> Decimal
func negate()
func NSDecimalCompact (UnsafeMutablePointer<Decimal>)
func NSDecimalAdd (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalSubtract (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalDivide (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalMultiply (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, UnsafePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalMultiplyByPowerOf10 (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, Int16, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalRound (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, Int, NSDecimalNumber.RoundingMode)
func NSDecimalPower (UnsafeMutablePointer<Decimal>, UnsafePointer<Decimal>, Int, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
func NSDecimalNormalize (UnsafeMutablePointer<Decimal>, UnsafeMutablePointer<Decimal>, NSDecimalNumber.RoundingMode) -> NSDecimalNumber.CalculationError
typealias Decimal.RoundingMode
enum NSDecimalNumber.RoundingMode
typealias Decimal.CalculationError
enum NSDecimalNumber.CalculationError
exceptionDuringOperation(_:error:leftOperand:rightOperand:)
.
exceptionDuringOperation(_:error:leftOperand:rightOperand:)
におけるエラーを解説するのに使われる計算エラー定数。
var sign: FloatingPointSign
var exponent: Int
var significand: Decimal
var magnitude: Decimal
var floatingPointClass : FloatingPointClassification
var isCanonical : Bool
var isFinite : Bool
var isInfinite : Bool
var isNaN : Bool
var isNormal : Bool
var isSignMinus : Bool
var isSignaling : Bool
var isSignalingNaN : Bool
var isSubnormal : Bool
var isZero : Bool
var nextDown : Decimal
var nextUp : Decimal
var ulp: Decimal
static let greatestFiniteMagnitude : Decimal
static let leastFiniteMagnitude : Decimal
static let leastNonzeroMagnitude : Decimal
static let leastNormalMagnitude : Decimal
static let pi: Decimal
static var nan: Decimal
static var quietNaN : Decimal
static var radix: Int
var NSDecimalNoScale : Int32
static func < (Decimal, Decimal) -> Bool
static func == (Decimal, Decimal) -> Bool
func isEqual (to: Decimal) -> Bool
func isLess (than: Decimal) -> Bool
func isLessThanOrEqualTo (Decimal) -> Bool
func isTotallyOrdered (belowOrEqualTo : Decimal) -> Bool
func distance(to: Decimal) -> Decimal
func advanced(by: Decimal) -> Decimal
func NSDecimalCompare (UnsafePointer<Decimal>, UnsafePointer<Decimal>) -> ComparisonResult
func encode(to: Encoder)
init(from: Decoder)
var description: String
var hashValue : Int
class NSDecimalNumber
Decimal
; use NSDecimalNumber
when you need reference semantics or other Foundation-specific behavior.
底10の数での計算を表すそして実行するためのオブジェクト、それはDecimal
にブリッジされます;NSDecimalNumber
をあなたが参照意味論または他のFoundation特有の挙動を必要とする場合は使ってください。
struct Int
struct Double
class NumberFormatter