SignedInteger

protocol SignedInteger : _SignedInteger, Integer
  • Mechanica

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

    255.binaryString //11111111

    Declaration

    Swift

    public final func binaryString() -> String
  • 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