Solved

# Adding, subtracting, dividing and multipying Negative numbers

Posted on 2006-04-01

I have a Fraction Calculator I pieced together in Visual basic 2005 express. My kids use to check homework. It works just fine But my oldest child has been getting some problems that have negative numbers example: -1/2 X 1/4 = -1/8 The rules for multipying and division are simple...If both fractions (numbers) have the same sign the anwser is positive But with adding or subtracting it is a diffrerent story. Is there a built in math function or a way to assign a number to be negative? if so will it follow the negative / position rukles of math. On a calculator you would use the +/- button. Or do I have to create my own code? any help would be appreicated. I have my code I am using now if you need to see it.....Thanks