Ask Your Question

radix, convert to another base.

asked 2020-05-25 12:06:26 +0200

anonymous user


it is about radix, how can i convert a number in base 10 to base 7? thx

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-05-25 13:22:10 +0200

tmonteil gravatar image

The str method of integers does that:

sage: a = 12
sage: a.str(7)
edit flag offensive delete link more


thank you so much you are a good man :)

aminmh78 gravatar imageaminmh78 ( 2020-05-25 15:05:12 +0200 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2020-05-25 12:06:26 +0200

Seen: 102 times

Last updated: May 25 '20