Ask Your Question

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

asked 2017-09-26 15:55:16 -0500

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-26 17:35:25 -0500

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 15:55:16 -0500

Seen: 51 times

Last updated: Sep 26