1.214 class unary_expression

Arithmetic function of one unary_expression<-argument. Its subclasses make an integer from an expression:

roundRound to the nearest integer, halves away from zero
floorRound down

xpce numbers need not be integers. For example, a length in millimeters is generally not a whole number of pixels, and _/_ does not truncate. Where a whole number is needed, wrap the expression:

send(Window, width, round(W - SBW))
See also
class binary_expression

1.214.1 Instance variables

unary_expression <-> argument: expression
The expression evaluated.

1.214.2 Send methods

unary_expression ->initialise: argument=expression
Create from the expression to evaluate.