First time here? Check out the FAQ!

Ask Your Question
1

How converting some number of different base to 10 to base 10?

asked 7 years ago

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hello, how can I convert some number into different base at 10, to the base 10 in Sage? For example: convert ( EAEI in base 36 ) = 666666 into base 10. In advance thank you very much for your help. Best regards

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 7 years ago

slelievre gravatar image

To get a Python int, do this:

sage: int('EAEI', base=36)
666666

To get a Sage Integer, do this:

sage: Integer('EAEI', base=36)
666666
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 7 years ago

Seen: 3,239 times

Last updated: Sep 27 '17