SignedInteger

protocol SignedInteger : _SignedInteger, Integer
  • Mechanica

    Creates a string representing the given value in the hexadecimal base.

    255.hexadecimalString //ff

    Declaration

    Swift

    public final func hexadecimalString(uppercase: Bool = true) -> String
  • Mechanica

    Creates a string representing the given value in the binary base.

    255.binaryString //"11111111"
    Int16(-1).binaryString //"1111111111111111"
    

    Declaration

    Swift

    public var binaryString: String