Ask Your Question
0

radix, convert to another base.

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

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 13:22:10 +0200

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 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

Stats

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

Seen: 545 times

Last updated: May 25 '20