Decimal128

public struct Decimal128 : BSONNumber, Equatable, Codable, CustomStringConvertible

A struct to represent the BSON Decimal128 type.

  • Create an Int from this Decimal128. Note: this function is not implemented yet and will always return nil.

    Declaration

    Swift

    public var intValue: Int? { get }
  • Create an Int32 from this Decimal128. Note: this function is not implemented yet and will always return nil.

    Declaration

    Swift

    public var int32Value: Int32? { get }
  • Create an Int64 from this Decimal128. Note: this function is not implemented yet and will always return nil.

    Declaration

    Swift

    public var int64Value: Int64? { get }
  • Create a Double from this Decimal128. Note: this function is not implemented yet and will always return nil.

    Declaration

    Swift

    public var doubleValue: Double? { get }
  • Returns this Decimal128. This is implemented as part of BSONNumber conformance.

    Declaration

    Swift

    public var decimal128Value: Decimal128? { get }