
![]() |
Welcome Guest ( Log In | Register ) ![]() |
![]() ![]() ![]() |
Mathos |
Posted: Jan 3 2010, 03:39 PM
|
![]() |
I want a range:
range(negative number, positive number, 0.05) And I want to limit the output so that the range never returns an integer value. I don't know if this is possible. If it's not, is it possible to define a variable's range as a collection of ranges? For example: range(-1.95, -1.05, 0.05) AND range(-0.95, -0.05, 0.05) AND range(0.05, 0.95, 0.05) AND... |
McGarrett |
Posted: Jan 8 2010, 10:52 PM
|
![]() |
Try this.
num = range(negative, positive, .05) and a condition int(num) <> num |
![]() ![]() ![]() |