Ask Your Question
1

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

asked 2017-09-26 22:55:16 +0100

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-09-27 00:35:25 +0100

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
edit flag offensive delete link more

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: 2017-09-26 22:55:16 +0100

Seen: 3,106 times

Last updated: Sep 27 '17