Skip to content

aint-vscp/Radial.Calculation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Radial.Calculation

Function Documentation:

decimal_to_binary(decimal_num)

Converts a decimal number to its binary representation.

Parameters:

  • decimal_num (int): The decimal number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • binary_representation (str): The binary representation of the input decimal number.

decimal_to_octal(decimal_num)

Converts a decimal number to its octal representation.

Parameters:

  • decimal_num (int): The decimal number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • octal_representation (str): The octal representation of the input decimal number.

decimal_to_hexadecimal(decimal_num)

Converts a decimal number to its hexadecimal representation.

Parameters:

  • decimal_num (int): The decimal number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • hexadecimal_representation (str): The hexadecimal representation of the input decimal number.

binary_to_decimal(binary_num, base)

Converts a binary number to its decimal representation.

Parameters:

  • binary_num (str): The binary number to be converted.
  • base (int): The base of the input number system (2 for binary).

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • radial_representation (int): The decimal representation of the input binary number.

octal_to_decimal(octal_num, base)

Converts an octal number to its decimal representation.

Parameters:

  • octal_num (str): The octal number to be converted.
  • base (int): The base of the input number system (8 for octal).

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • radial_representation (int): The decimal representation of the input octal number.

hexadecimal_to_decimal(hex_num, base)

Converts a hexadecimal number to its decimal representation.

Parameters:

  • hex_num (str): The hexadecimal number to be converted.
  • base (int): The base of the input number system (16 for hexadecimal).

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • radial_representation (int): The decimal representation of the input hexadecimal number.

radial_to_decimal(radial_num, base)

Converts a number from any radix (radial number system) to its decimal representation.

Parameters:

  • radial_num (str): The number in radial representation to be converted.
  • base (int): The base of the input number system.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • decimal_num (int): The decimal representation of the input radial number.

binary_to_octal(binary_num)

Converts a binary number to its octal representation.

Parameters:

  • binary_num (str): The binary number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • octal_representation (str): The octal representation of the input binary number.

binary_to_hexadecimal(binary_num)

Converts a binary number to its hexadecimal representation.

Parameters:

  • binary_num (str): The binary number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • hexadecimal_representation (str): The hexadecimal representation of the input binary number.

octal_to_binary(octal_num)

Converts an octal number to its binary representation.

Parameters:

  • octal_num (str): The octal number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • binary_representation (str): The binary representation of the input octal number.

octal_to_hexadecimal(octal_num)

Converts an octal number to its hexadecimal representation.

Parameters:

  • octal_num (str): The octal number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • hexadecimal_representation (str): The hexadecimal representation of the input octal number.

hexadecimal_to_binary(hex_num)

Converts a hexadecimal number to its binary representation.

Parameters:

  • hex_num (str): The hexadecimal number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • binary_representation (str): The binary representation of the input hexadecimal number.

hexadecimal_to_octal(hex_num)

Converts a hexadecimal number to its octal representation.

Parameters:

  • hex_num (str): The hexadecimal number to be converted.

Returns:

  • steps (list): A step-by-step explanation of the conversion process.
  • octal_representation (str): The octal representation of the input hexadecimal number.

print_steps(steps)

Prints the step-by-step explanation of a conversion process.

Parameters:

  • steps (list): A list containing the step-by-step explanation

.


main()

Executes the main program. It prompts the user to select the type of calculation and performs the chosen conversion.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages