November 22nd, 2012, 02:47 AM
im new to Programming python, i've started using the unit test function, and im about to assert a float.
i know how to use the first one:
self.assertEqual(first, second, msg)
but i need this one:
self.assertAlmostEqual(first, second, places, msg, delta)
and here is my question, as gar as i know delta is the precision i want, but what is places?
November 22nd, 2012, 03:00 AM
Welcome to DevShed, kosten.
The 'places' argument is the number of decimal places you wish to compare.
November 22nd, 2012, 03:25 AM
thank you so very much
Originally Posted by Winters