View Full Version : Need a way to divide a group of numbers

09-10-2003, 08:22 PM
I don't know what you want to achieve, but if you only have a problem with division, show us an example of the other operations, what for example does 1,0,0 + 2,0 give?

09-10-2003, 09:07 PM
Little side project i am doing, and ran into a block. What i want to do is create a calculator that can do basic maths on a range of numbers limited only by the memory within computer <IE not the max imposed by the implementation. Its gona be in C++ so i wrote a vectorish class to help with this. My Problem now lies in Division.
Imaging i have two groups of numbers
A:1 0 0
B: 2 0
i wanted to know what A divided by B is. My problem is i can't seem to figure out or find a forumla that will allow me to divide the groups. Standard long division wouldn't work cause one number doesn't know the next exists
Thanks for your time
Sorry if this isn't very clear, post any questions.
PS: posted this in GD cause its not programming specific, its kinda general as we have no math place heh; but if ya think it should go else where move away of course :p

09-11-2003, 12:09 PM
think of the numbers in the groupings as one big number
but each part of it
it would be like an int[3] = { 1 , 0 , 0} Which would be 100
Addition Multiplication and subtraction are easy enough with basic math you learn early in life but divion is ickier :P
so 1,0,0 + 2,0 = 120

09-11-2003, 12:39 PM
Stop bumping your threads.

edit: Whoops - my mistake - sorry.

09-11-2003, 12:42 PM
Umm i didn'trAdrian Respodned to my thread and responded to him. duno why his post is at top of my First psot <look at times, its wierd>

09-11-2003, 12:44 PM
An easy way would be to implement the school long-hand division you learn in elementary school.