Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is a problem with floating point arithmetic. Even numpy doesn't do things exactly; it's only a question of magnitude of error. To get it exactly, use exact numbers: srange(0,2,1/1000).