PDA

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?

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

Iamien
09-11-2003, 12:09 PM
alrighty.
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

Govtcheez
09-11-2003, 12:39 PM