eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'NotANumber':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: NotANumber


Inheritance:

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

Package:
stx:libbasic
Category:
Magnitude-Numbers
Version:
rev: 1.4 date: 2017/06/21 18:38:20
user: cg
file: NotANumber.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


Represents the NaN metaNumber for non-float classes.


Related information:

    Number
    Infinity
    Float
    ShortFloat
    LongFloat
    QDouble
    Fraction
    FixedPoint
    Integer
    Complex
    FloatArray
    DoubleArray

Class protocol:

class initialization
o  initialize
self initialize

instance creation
o  NaN
(comment from inherited method)
return the special 'not a number' value

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 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Mar 2024 08:34:52 GMT