Forum Rules Notice

Due to inappropriate SPAM postings, our forums are now being monitored for inappropriate content. This will cause your post to not appear publicly until it has been approved by a forum moderator. We apologize for the delay this may cause in your response, but have found it the best way to control inappropriate posts.

  Reply to this topicStart new topicStart Poll

> Placing Limitations On A Variable's Range
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...
PMEmail Poster
Posted: Jan 8 2010, 10:52 PM

Try this.

num = range(negative, positive, .05) and a condition
int(num) <> num

PMEmail Poster
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Reply to this topic Start new topicStart Poll


Copyright 1998-2008 eInstruction Corp. All rights reserved.