Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
converting int to any base
#1
i would like to know in there is a way to convert an int to a string of digit, with a specified minimum width and a specified leading character (if there is room for it) in any base > 1 for which enough digits can be provided ... or if i need to code my own function.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
converting int to any base - by Skaperen - Aug-16-2018, 05:28 AM
RE: converting int to any base - by perfringo - Aug-16-2018, 06:55 AM
RE: converting int to any base - by Skaperen - Aug-16-2018, 07:06 AM
RE: converting int to any base - by perfringo - Aug-16-2018, 09:12 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020