Post Reply 
Any languages able to program (0,1] mathematical interval
04-28-2017, 09:23 PM (This post was last modified: 04-29-2017 08:50 PM by pier4r.)
Post: #6
RE: Any languages able to program (0,1] mathematical interval
(04-28-2017 01:56 PM)StephenG1CMZ Wrote:  Alternatively, is there a different way of writing such an interval concisely, yet making which is included/excluded clearer.

To emphasize the equal.

Code:

if ( (a < 0 and a > 9) or (a == 0) ) {
  //this avoid the subtle <= that may be overlooked more easily than an extended condition. 
  //Code maintenance is more important than performance most of the time. Brain time is more precious than CPU time.
  ...code...
}

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Any languages able to program (0,1] mathematical interval - pier4r - 04-28-2017 09:23 PM



User(s) browsing this thread: 1 Guest(s)