Menu

numeric objects

Mark Rosenblitt-Janssen

Numeric objects are simple objects that simply holds a number. There are no
methods or functions in the object, except that provided by the object
environment (the [DataEcosystem]).

A rational object, for example, might simply be a nominator and denominator
pair of integer attributes. A complex number is similar, but uses floating
point, if that is what is provided by the [hardware architecture].

An equation object might hold multiple number objects, related to by ...

A naked number is not an object but a "literal", but one can put a literal
into a number object like so:

myNumberStack isa container object 10 5 3

5 >> myNumberStack. myNumber + my

One could bind two number objects with an operator symbol.


See also:


Related

Wiki: DataEcosystem
Wiki: all objects