bigger than long | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

bigger than long

I want to create a datatype that can store more than a long. should I try to do this wirh an array of longs or Strings where I save the Number and calculate + and - etc. with String operations?

11th Aug 2016, 9:57 AM
Eric Zeus
Eric Zeus - avatar
10 Réponses
+ 2
I want to code it from scratch without any Class like Biginteger.
11th Aug 2016, 10:55 AM
Eric Zeus
Eric Zeus - avatar
11th Aug 2016, 10:59 AM
WPimpong
WPimpong - avatar
11th Aug 2016, 10:53 AM
WPimpong
WPimpong - avatar
+ 1
thanks
11th Aug 2016, 11:01 AM
Eric Zeus
Eric Zeus - avatar
0
I will try to use this with smth. like stacks. but thanks for this link.
11th Aug 2016, 11:05 AM
Eric Zeus
Eric Zeus - avatar
0
Why stack? is it faster?
11th Aug 2016, 11:16 AM
WPimpong
WPimpong - avatar
0
it isnt faster but I like difficult approches. Also it has no defined lenght.
11th Aug 2016, 11:19 AM
Eric Zeus
Eric Zeus - avatar
0
also I can insert a number inbetween two numbers.
11th Aug 2016, 11:20 AM
Eric Zeus
Eric Zeus - avatar
0
So the type you needed is not just +,- calculator.
11th Aug 2016, 11:25 AM
WPimpong
WPimpong - avatar
0
yes it needs a few more methods +×÷-% and maybe even a few from the math class
11th Aug 2016, 11:38 AM
Eric Zeus
Eric Zeus - avatar