BigInteger

open class BigInteger: ObjectBase

Arbitrary precision integer value.

  • Initialize from an integer value.

    Declaration

    Swift

    public convenience init(_ value: Int)

    Parameters

    value

    Integer value.

  • Declaration

    Swift

    public func decimalValue() -> Decimal
  • Initialize from a decimal value.

    Declaration

    Swift

    public convenience init(_ value: Decimal)

    Parameters

    value

    Swift.Decimal value.

  • Initialize from a string value.

    Declaration

    Swift

    public convenience init(_ text: String)

    Parameters

    text

    String value. Must use valid XML Schema lexical representation for type integer.

  • Declaration

    Swift

    open func abs() -> BigInteger

    Return Value

    The absolute value of this value (0 for zero, otherwise positive).

  • Declaration

    Swift

    open func add(_ p_y: BigInteger) -> BigInteger

    Return Value

    The sum of this value and another value.

  • Declaration

    Swift

    open func byteValue() -> Int

    Return Value

    This value converted to type `byte’.

  • Declaration

    Swift

    open func compareTo(_ p_y: BigInteger) -> Int

    Return Value

    This value compared to another value (-1 if this < other, 0 if this == other, 1 if this > other).

  • Declaration

    Swift

    open func divide(_ p_y: BigInteger) -> BigInteger

    Return Value

    This value divided by another value.

  • Declaration

    Swift

    open func doubleValue() -> Double

    Return Value

    This value converted to type `double’.

  • Declaration

    Swift

    open func equalTo(_ y: BigInteger) -> Bool

    Return Value

    true if this value is equal to another value.

  • Declaration

    Swift

    open func floatValue() -> Float

    Return Value

    This value converted to type `float’.

  • Declaration

    Swift

    open class func fromByte(_ value: Int) -> BigInteger

    Parameters

    value

    Byte value.

    Return Value

    value converted from type byte.

  • Declaration

    Swift

    open class func fromDouble(_ value: Double) -> BigInteger

    Parameters

    value

    Double value.

    Return Value

    value converted from type double.

  • Declaration

    Swift

    open class func fromFloat(_ value: Float) -> BigInteger

    Parameters

    value

    Float value.

    Return Value

    value converted from type float.

  • Declaration

    Swift

    open class func fromInt(_ value: Int) -> BigInteger

    Parameters

    value

    Int value.

    Return Value

    value converted from type int.

  • Declaration

    Swift

    open class func fromLong(_ value: Int64) -> BigInteger

    Parameters

    value

    Long value.

    Return Value

    value converted from type long.

  • Declaration

    Swift

    open class func fromShort(_ value: Int) -> BigInteger

    Parameters

    value

    Short value.

    Return Value

    value converted from type short.

  • Declaration

    Swift

    open func greaterEqual(_ y: BigInteger) -> Bool

    Return Value

    true if this value is greater than or equal to another value.

  • Declaration

    Swift

    open func greaterThan(_ y: BigInteger) -> Bool

    Return Value

    true if this value is greater than another value.

  • Declaration

    Swift

    open func intValue() -> Int

    Return Value

    This value converted to type `int’.

  • Declaration

    Swift

    open func lessEqual(_ y: BigInteger) -> Bool

    Return Value

    true if this value is less than or equal to another value.

  • Declaration

    Swift

    open func lessThan(_ y: BigInteger) -> Bool

    Return Value

    true if this value is less than another value.

  • Declaration

    Swift

    open func longValue() -> Int64

    Return Value

    This value converted to type `long’.

  • Declaration

    Swift

    open func multiply(_ p_y: BigInteger) -> BigInteger

    Return Value

    The product of this value and another value.

  • Declaration

    Swift

    open func negate() -> BigInteger

    Return Value

    The negation of this value.

  • Declaration

    Swift

    open func notEqual(_ y: BigInteger) -> Bool

    Return Value

    true if this value is not equal to another value.

  • Declaration

    Swift

    open class func parse(_ text: String) -> BigInteger?

    Parameters

    text

    Text string using XML Schema lexical representation for this type.

    Return Value

    value parsed from text in XML Schema lexical form, or nil if text is not in that form.

  • Declaration

    Swift

    open func remainder(_ y: BigInteger) -> BigInteger

    Return Value

    The remainder of this value divided by another value.

  • Declaration

    Swift

    open func shortValue() -> Int

    Return Value

    This value converted to type `short’.

  • Declaration

    Swift

    open func sign() -> Int

    Return Value

    The sign of this value (-1 for negative, 0 for zero, 1 for positive).

  • Declaration

    Swift

    open func subtract(_ p_y: BigInteger) -> BigInteger

    Return Value

    The difference between this value and another value.

  • Declaration

    Swift

    override open func toString() -> String

    Return Value

    String representation of this value (using XML Schema canonical form).