Next:
SmallInteger-builtins
, Previous:
SmallInteger-bit arithmetic
, Up:
SmallInteger
1.152.4 SmallInteger: built ins
* arg
Multiply the receiver and arg and answer another Number
+ arg
Sum the receiver and arg and answer another Number
- arg
Subtract arg from the receiver and answer another Number
/ arg
Divide the receiver by arg and answer another Integer or Fraction
// arg
Dividing receiver by arg (with truncation towards -infinity) and answer the result
< arg
Answer whether the receiver is less than arg
<= arg
Answer whether the receiver is less than or equal to arg
= arg
Answer whether the receiver is equal to arg
== arg
Answer whether the receiver is the same object as arg
> arg
Answer whether the receiver is greater than arg
>= arg
Answer whether the receiver is greater than or equal to arg
\\ arg
Calculate the remainder of dividing receiver by arg (with truncation towards -infinity) and answer it
asFloatD
Convert the receiver to a FloatD, answer the result
asFloatE
Convert the receiver to a FloatE, answer the result
asFloatQ
Convert the receiver to a FloatQ, answer the result
asObject
Answer the object whose index is in the receiver, nil if there is a free object, fail if index is out of bounds
asObjectNoFail
Answer the object whose index is in the receiver, or nil if no object is found at that index
bitAnd: arg
Do a bitwise AND between the receiver and arg, answer the result
bitOr: arg
Do a bitwise OR between the receiver and arg, answer the result
bitShift: arg
Shift the receiver by arg places to the left if arg > 0, by arg places to the right if arg < 0, answer another Number
bitXor: arg
Do a bitwise XOR between the receiver and arg, answer the result
divExact: arg
Dividing receiver by arg assuming that the remainder is zero, and answer the result
nextValidOop
Answer the index of the first non-free OOP after the receiver. This is used internally; it is placed here to avoid polluting Object.
quo: arg
Dividing receiver by arg (with truncation towards zero) and answer the result
~= arg
Answer whether the receiver is not equal to arg
~~ arg
Answer whether the receiver is not the same object as arg