Number protocol

For some type T which is like a number, these are the conventional messages to implement.

This protocol is implemented by Integer and Float64.

Protocol
Sugar expansion of +. write documentation

Sugar expansion of -. write documentation

Sugar expansion of *. write documentation

Sugar expansion of //. write documentation

Sugar expansion of /. write documentation

Sugar expansion of %. write documentation

Sugar expansion of %%. write documentation

Sugar expansion of **. write documentation

Sugar expansion of.

It is expected that when this is an integer, modulus is a nonzero integer and exponent is a positive integer, this operation will be implemented efficiently.

Sugar expansion of -. Return the additive inverse of the receiver.

Return the absolute value of the receiver.

Compare the recipient to other, and return whichever is greater.

Compare the recipient to other, and return whichever is lesser.