Ask Your Question

radix, convert to another base.

asked 2020-05-25 05:06:26 -0600

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 06:22:10 -0600

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 08:05:12 -0600 )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 05:06:26 -0600

Seen: 64 times

Last updated: May 25 '20