Primitive Methods
Every arithmetic type has a predefined interface which covers a set of basic math functions. The following messages are available for all arithmetic types:
Method | Receiver | Returns | Usage |
arithmetic | arithmetic | absolute value of val | |
val1.max(val2) | arithmetic | arithmetic | the greater of two values |
val1.min(val2) | arithmetic | arithmetic | the smaller of two values |
var.between(val1, val2) | arithmetic | log | var between val1 and val2 |
The var.between(val1,val2 ) method corresponds to the between:And: element in block diagrams.
See also