Ask Your Question
0

radix, convert to another base.

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

anonymous user

Anonymous

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
0

answered 2020-05-25 06:22:10 -0500

tmonteil gravatar image

The str method of integers does that:

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

Comments

thank you so much you are a good man :)

aminmh78 gravatar imageaminmh78 ( 2020-05-25 08:05:12 -0500 )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

Stats

Asked: 2020-05-25 05:06:26 -0500

Seen: 32 times

Last updated: May 25