Warren Weckesser-3 wrote:
A couple questions:
How many floats will you be storing?
When you test for membership, will you want to allow for a numerical tolerance, so that if the value 1 - 0.7 is added to the set, a test for the value 0.3 returns True? (0.3 is actually 0.29999999999999999, while 1-0.7 is 0.30000000000000004)
Warren
Anne- Thanks for that absolutely beautiful explanation!! Warren- I had not initially thought about numerical tolerance, but this could potentially be an issue, in which case the management of the data would have to be completely different. Thanks for pointing this out! I might have as many as 50,000 values. Phillip -- View this message in context: http://old.nabble.com/efficient-way-to-manage-a-set-of-floats--tp28518014p28... Sent from the Numpy-discussion mailing list archive at Nabble.com.