MetaNumber.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 21893 7f442cdde080
child 24987 3f6eba983106
permissions -rw-r--r--
#REFACTORING by exept class: Smalltalk class changed: #recursiveInstallAutoloadedClassesFrom:rememberIn:maxLevels:noAutoload:packageTop:showSplashInLevels: Transcript showCR:(... bindWith:...) -> Transcript showCR:... with:...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2003 by eXept Software AG
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
18831
86e8f2bd201b #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 7436
diff changeset
    12
"{ Package: 'stx:libbasic' }"
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
18831
86e8f2bd201b #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 7436
diff changeset
    14
"{ NameSpace: Smalltalk }"
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
Number subclass:#MetaNumber
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Magnitude-Numbers'
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!MetaNumber class methodsFor:'documentation'!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 2003 by eXept Software AG
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
              All Rights Reserved
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
"
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
documentation
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    Common behavior for metaNumbers (INF, NaN).
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    [author:]
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
        Claus Gittinger
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    [see also:]
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
        Number Infinity NotANumber
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
        Float ShortFloat Fraction FixedPoint Integer Complex
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
        FloatArray DoubleArray                                                                         
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
"
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
! !
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
18916
a6b0e823b4b6 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18831
diff changeset
    53
!MetaNumber class methodsFor:'queries'!
a6b0e823b4b6 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18831
diff changeset
    54
a6b0e823b4b6 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18831
diff changeset
    55
isAbstract
a6b0e823b4b6 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18831
diff changeset
    56
    ^ self == MetaNumber
a6b0e823b4b6 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18831
diff changeset
    57
! !
a6b0e823b4b6 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 18831
diff changeset
    58
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
!MetaNumber methodsFor:'coercing & converting'!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
asFloat
21893
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    62
    "return a Float with same value as the receiver.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    63
     For anything but NaN, +Inf or -Inf, an error is raised here."
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    64
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    65
    ^ self asInstanceOf:Float fromSelector:#asFloat.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    66
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    67
    "Modified: / 21-06-2017 / 20:41:03 / cg"
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
asFraction
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    ^ self class
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
        raise:#domainErrorSignal
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
        receiver:self
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
        selector:#asFraction
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
        arguments:#()
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
        errorString:'Cannot represent non-finite as fraction'.
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
21893
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    79
asInstanceOf:aFloatClass fromSelector:selector
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    80
    "common code for asShortFloat, asFloat, ...
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    81
     Return an instance of aFloatClass with same value as the receiver.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    82
     For anything but NaN, +Inf or -Inf, an error is raised here."
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    83
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    84
    self isNaN ifTrue:[ ^ aFloatClass NaN ].
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    85
    self isInfinite ifTrue:[ 
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    86
        self negative ifTrue:[
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    87
            ^ aFloatClass negativeInfinity
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    88
        ].    
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    89
        ^ aFloatClass infinity 
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    90
    ].
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    91
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    92
    ^ self class
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    93
        raise:#domainErrorSignal
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    94
        receiver:self
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    95
        selector:selector
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    96
        arguments:#()
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    97
        errorString:'Cannot represent non-finite as float'.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    98
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
    99
    "Created: / 21-06-2017 / 20:40:35 / cg"
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   100
!
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   101
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
asInteger
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    ^ self class
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
        raise:#domainErrorSignal
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
        receiver:self
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
        selector:#asInteger
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
        arguments:#()
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
        errorString:'Cannot represent non-finite as integer'.
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
asLargeFloat
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    ^ self class
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
        raise:#domainErrorSignal
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
        receiver:self
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
        selector:#asLargeFloat
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
        arguments:#()
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
        errorString:'Cannot represent non-finite as float'.
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
asLongFloat
21893
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   121
    "return a LongFloat with same value as the receiver.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   122
     For anything but NaN, +Inf or -Inf, an error is raised here."
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   123
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   124
    ^ self asInstanceOf:LongFloat fromSelector:#asLongFloat.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   125
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   126
    "Modified: / 21-06-2017 / 20:41:26 / cg"
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   127
!
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   128
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   129
asQDouble
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   130
    "return a QDouble with same value as the receiver.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   131
     For anything but NaN, +Inf or -Inf, an error is raised here."
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   132
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   133
    ^ self asInstanceOf:QDouble fromSelector:#asQDouble
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   134
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   135
    "
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   136
     Infinity NaN asFloat
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   137
     Infinity NaN asQDouble
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   138
     
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   139
     Infinity positive asFloat
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   140
     Infinity positive asQDouble
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   141
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   142
     Infinity negative asFloat
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   143
     Infinity negative asQDouble
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   144
    "
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   145
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   146
    "Created: / 21-06-2017 / 20:42:09 / cg"
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
asShortFloat
21893
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   150
    "return a Float with same value as the receiver.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   151
     For anything but NaN, +Inf or -Inf, an error is raised here."
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   152
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   153
    ^ self asInstanceOf:ShortFloat fromSelector:#asShortFloat.
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   154
7f442cdde080 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18916
diff changeset
   155
    "Modified: / 21-06-2017 / 20:41:41 / cg"
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
coerce:aNumber
18831
86e8f2bd201b #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 7436
diff changeset
   159
    "convert the argument aNumber into an instance of the receiver's class and return it."
86e8f2bd201b #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 7436
diff changeset
   160
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
    ^ aNumber asMetaNumber
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
generality
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    "NaN, INF etc. are more general than scalars, but not more general than
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
     vectors (e.g. Points)"
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
    ^ 105
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
! !
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
!MetaNumber class methodsFor:'documentation'!
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
version
18831
86e8f2bd201b #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 7436
diff changeset
   174
    ^ '$Header$'
7436
077eb3b8f2c0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
! !
18831
86e8f2bd201b #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 7436
diff changeset
   176