Shayaan-Kashif / Number-Base-Converter

This program converts numbers between Decimal, binary and Hexadecimal
1 stars 0 forks source link

To hex cannot distinguish between binary or decimal numbers only using 1 and 0 #4

Closed Willev05 closed 1 month ago

Willev05 commented 1 month ago

image As seen in the image, source base is never checked leading to the strange behaviour.

image An if statement at line 126 can be modified and made to check the input base instead of the current approach.

Shayaan-Kashif commented 1 month ago

Modified the code to check what the source base is before converting