eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'NotANumber':

Home

everywhere
www.exept.de
for:
[back]

Class: NotANumber


Inheritance:

   Object
   |
   +--Magnitude
      |
      +--ArithmeticValue
         |
         +--Number
            |
            +--MetaNumber
               |
               +--NotANumber

Package:
stx:libbasic
Category:
Magnitude-Numbers
Version:
rev: 1.2 date: 2003-07-02 09:52:32
user: cg
file: NotANumber.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


Represents the two metaNumbers +INF and -INF for non-float classes.


Related information:

    Number
    Infinity
    NotANumber
    Float
    ShortFloat
    Fraction
    FixedPoint
    Integer
    Complex
    FloatArray
    DoubleArray

Class protocol:

class initialization
o  initialize

instance creation
o  new


Instance protocol:

arithmetic
o  * aNumber
Multiply the receiver and the argument and answer with the result.

o  + aNumber
Add the receiver and the argument and answer with the result.

o  - aNumber
Subtract the argument from the receiver and answer with the result.

o  / aNumber
Divide the receiver by the argument and answer with the result.

comparing
o  = something
return true, if the argument represents the same numeric value
as the receiver, false otherwise.

double dispatching
o  differenceFromSomeNumber: aNumber
sent from aNumber-self, if aNumber does not know how to handle this

o  lessFromSomeNumber: aNumber
sent from aNumber < self, if aNumber does not know how to handle this

o  productFromSomeNumber: aNumber
sent from aNumber*self, if aNumber does not know how to handle this

o  quotientFromSomeNumber: aNumber
Return the quotient of the argument, aNumber and the receiver.
Sent when aNumber does not know how to divide by the receiver.

o  sumFromSomeNumber: aNumber
sent from aNumber+self, if aNumber does not know how to handle this

printing
o  printOn: aStream

testing
o  isFinite

o  isNaN



ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 20:13:45 GMT