Number system conversion

Hi Everyone, I need you help to create a code for Number system:
Octal to Decimal
Octal to binary
Octal to Hexadecimal
With trapping of the input value.
HexaDecimal to Decimal
HexaDecimal to binary
HexaDecimal to Octal
With trapping of the input value.

What have you tried? Have you searched the community? Most, if not all of these conversions are available, either in the native blocks, or procedures written by others. In extremis, there are extensions that can help, or you can use javascript to return conversions.

Look in the math blocks for quotient and remainder.

Apply them from right to left.

Negative numbers will require a word size framework.

Thank you for answering, already done with the codes and already working.