Opentopia Directory Encyclopedia Tools

Numerical tower

Encyclopedia : N : NU : NUM : Numerical tower


In computing, a numerical tower is the set of number types (data types that represent numbers) in a given programming language.

Each type in the tower conceptually ‘sits on’ a more fundamental type, so an integer is a rational number and a number, but the inverse is not necessarily true, i. e. not every number is an integer.

Typically a language will support a modified version of this numerical tower; Kawa Scheme, for example, extends this basic numerical tower with a Quantity type that is even more generic than Number, while Smalltalk has Magnitude as superclass of Number. Another popular variant is having both exact and inexact versions of the tower or parts of it. Some languages and language implementations do not support a full numerical tower or support it only in a limited way.

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: