Ad
  • Default User Avatar

    no the int() function converts from any number system to decimal. if you wanted to convert to, say, binary you'd have to use the bin() function.

  • Default User Avatar

    int converts a data type to integer. It can convert strings of numbers from other number base systems via the second optional input for the function. Eg: int("1001",2) == 9 because it is converting a base-2 string of numbers into denary. In this case, 16 was used because hexadecimal is a base-16 number system.