GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by Anonymous
Please enter the first test fraction: 5/15
Please enter the second test fraction: 3/5

Testing Reduction:
Fraction #1 = 1/3
Fraction #2 = 3/5

Mathmatical Operators:
1/3 + 3/5 = 14/15
1/3 - 3/5 = -4/15
1/3 * 3/5 = 1/5

Implicit Conversions:
1/3 + 5 = 16/3
1/3 - 5 = -14/3
1/3 * 5 = 5/3

Comparison Operators:
1/3 > 3/5  = False
1/3 < 3/5  = True
1/3 >= 3/5 = False
1/3 <= 3/5 = True
1/3 == 3/5 = False
1/3 != 3/5 = True
Press any key to continue