Ask Your Question

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

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

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

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

slelievre gravatar image

To get a Python int, do this:

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

To get a Sage Integer, do this:

sage: Integer('EAEI', base=36)
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


Asked: 2017-09-26 22:55:16 +0200

Seen: 2,670 times

Last updated: Sep 27 '17