w n/d โ (|w|ยทd + n) with sign. Example: 2 1/3 = 7/3, -1 1/2 = -3/2.A = aยท(LCD/a_d), B = bยท(LCD/b_d).A โ B = (A_scaled โ B_scaled) / LCD.GCD. Keep denominator positive.n/d โ w = floor(|n|/d), r = |n| % d with sign on w (or n if w=0).0 (denominator becomes 1).Choose which optional categories you allow. Necessary cookies are always on. Privacy Policy.