Page 1 of 1

Basic Challenge

Posted: Sun Oct 26, 2008 8:09 pm
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?

Posted: Sun Oct 26, 2008 8:17 pm
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

Posted: Sun Oct 26, 2008 9:50 pm
by m!nus
php has no problems with it :)

Posted: Sun Oct 26, 2008 10:59 pm
by mutinus
Thanks, guys, I got it.

Posted: Wed Oct 29, 2008 3:43 pm
by soulness
Thanks, guys))

Posted: Thu Nov 06, 2008 9:56 am
by A.Polke
or, in case you'd like the shimmer of perl:

use bignum;

Posted: Fri Jan 23, 2009 9:58 am
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:

Posted: Fri Feb 06, 2009 4:10 am
by thinkt4nk
thx for the bignum help, Polke. I don't think I've ever had to use that before now.


~t4nk(){}