#FEATURE
authorStefan Vogel <sv@exept.de>
Mon, 14 Mar 2016 18:43:06 +0100
changeset 19359 43b079b6245c
parent 19358 f9e7a37cffd9
child 19360 5b112fdb68be
#FEATURE class: LimitedPrecisionReal added: #maxSmallInteger
LimitedPrecisionReal.st
--- a/LimitedPrecisionReal.st	Mon Mar 14 18:42:55 2016 +0100
+++ b/LimitedPrecisionReal.st	Mon Mar 14 18:43:06 2016 +0100
@@ -458,6 +458,18 @@
     "
 !
 
+maxSmallInteger
+    "answer the largest possible SmallIntger value as instance of myself"
+
+    ^ self fromInteger:SmallInteger maxVal.
+
+    "
+       Float maxSmallInteger.
+       LongFloat maxSmallInteger.
+       ShortFloat maxSmallInteger.
+    "
+!
+
 negativeInfinity
     "return a float representing negative infinity"
 
@@ -1167,6 +1179,7 @@
 ! !
 
 
+
 !LimitedPrecisionReal methodsFor:'printing & storing'!
 
 printOn:aStream
@@ -1237,6 +1250,7 @@
    ^ 0
 ! !
 
+
 !LimitedPrecisionReal methodsFor:'testing'!
 
 isFinite