• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

how to create a program convert hexadecimal to decimal?

this program is how input hexadecimal to be decimal https://www.sololearn.com/discuss/1316935/?ref=app

hexadecimaldecimal
28th Feb 2019, 2:49 AM
Dion Purnama Putra
1 Answer
0
In python: int("hex_num",16) Eg. print(int("ff",16)) Outputs to: 255
28th Feb 2019, 6:24 AM
Nathan Lewis
Nathan Lewis - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Which is easier to learn first between python and JS?
0 Votes
API
0 Votes
Does sololearn teaches on how to create games
0 Votes
Sockets, etc
0 Votes
Quiz
0 Votes
I HAVE A PROBLEM I CANNOT ABLE TO SEND MESSAGE ANYONE AND ALSO MY MESSAGE SECTION NOT AVAILABLE "PLEASE ACTIVATE YOUR ACCOUNT
0 Votes
NecesitĂł ayuda
1 Votes
Any Sololearn Chat Groups that I could Join?
0 Votes
Excuse me, why do they always ask us to input without telling us what it is for in python.
2 Votes
Controls issue
0 Votes