eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SomeNumber':

Home

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

Class: SomeNumber


Inheritance:

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

Package:
stx:libbasic
Category:
Magnitude-Numbers
Version:
rev: 1.5 date: 2016/12/31 00:02:31
user: stefan
file: SomeNumber.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


Only used internally during double dispatch, 
when MetaNumbers (INF and NAN) are involved.


Related information:

    Number
    Infinity
    NotANumber
    Float
    ShortFloat
    Fraction
    FixedPoint
    Integer
    Complex
    FloatArray
    DoubleArray

Instance protocol:

arithmetic
o  * something
return the product of the receiver and the argument

o  + something
return the sum of the receiver and the argument

o  - something
return the difference of the receiver and the argument

o  / something
return the quotient of the receiver and the argument

o  < something
return true if the receiver is less than the argument

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

usage example(s):

        Float infinity = Infinity positive
        Infinity positive = Float infinity 
        Float negativeInfinity = Infinity negative
        Infinity negative = Float negativeInfinity 
        Float negativeInfinity = Infinity positive
        Infinity positive = Float negativeInfinity 

printing
o  printOn: aStream

private-accessing
o  realNumber

o  realNumber: something

queries
o  isInfinite

o  sign
return the sign of the receiver (-1, 0 or 1)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 17:04:42 GMT