def test_mult_div():
 dt_small = (6 * dt_tiny)
 dt_big = TimeDelta(20000.0, format='jd')
 dt_big_small_by_6 = ((dt_big + dt_small) / 6.0)
 dt_frac = (dt_big_small_by_6 - TimeDelta(3333.0, format='jd'))
 assert allclose_jd2(dt_frac.jd2, 0.33333333333333354)

def test_mult_div ( ) : dt_small = ( 6 * dt_tiny ) dt_big = TimeDelta ( 20000.0 , format = 'jd' ) dt_big_small_by_6 = ( ( dt_big + dt_small ) / 6.0 ) dt_frac = ( dt_big_small_by_6 - TimeDelta ( 3333.0 , format = 'jd' ) ) assert allclose_jd2 ( dt_frac . jd2 , 0.33333333333333354 )
test precision with multiply and divide .