Basic Challenge

Post Reply
mutinus
Posts: 3
Joined: Sun Oct 26, 2008 1:35 pm

Basic Challenge

Post by mutinus »

What is 28679718602997181072337614380936720482949 written in base 7?
I have converted this number from base 10 to base 7 with two different converters, and both gave me the same number. However, when I put the number in, it's wrong. Is there some trick to this one?
odi84
Posts: 3
Joined: Sun Oct 26, 2008 8:10 am

Post by odi84 »

hi,

most of the converters won't be able to calculate with very large numbers.
it depends of the used data-type (in the used programing language) processing your input.

i think you have to write your own converter program ... or calculate this manually
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

php has no problems with it :)
mutinus
Posts: 3
Joined: Sun Oct 26, 2008 1:35 pm

Post by mutinus »

Thanks, guys, I got it.
User avatar
soulness
Posts: 11
Joined: Mon Oct 27, 2008 2:56 pm
Location: //Europe/Ukraine/Kharkov

Post by soulness »

Thanks, guys))
A.Polke
Posts: 2
Joined: Tue Oct 28, 2008 10:05 am

Post by A.Polke »

or, in case you'd like the shimmer of perl:

use bignum;
JensK
Posts: 1
Joined: Mon Nov 17, 2008 9:09 am

Post by JensK »

i tryed php but the calculate number isn't the right one.
i read also that base_convert only works fine up to 36 digits, but this number asked for is more than 36 digits :cry:
thinkt4nk
Posts: 1
Joined: Sat Aug 16, 2008 6:04 am
Location: st louis, MO

Post by thinkt4nk »

thx for the bignum help, Polke. I don't think I've ever had to use that before now.


~t4nk(){}
.i1i1 thinkt4nk 1i1i.
chown -r all_your.base
Post Reply