LimitedPrecisionReal.st
branchjv
changeset 21026 81e280fc1b93
parent 20080 093324d7a47c
parent 20978 1500cfbc46c8
child 21292 21faad473411
--- a/LimitedPrecisionReal.st	Fri Nov 18 20:48:57 2016 +0000
+++ b/LimitedPrecisionReal.st	Tue Nov 22 14:52:52 2016 +0000
@@ -425,18 +425,21 @@
 fmax
     "The largest value allowed by instances of this class."
 
-    |radix|
+    |radix _radix|
 
     radix := self radix.
-    ^(self fromNumber: 1) -
-            ((self fromNumber: radix) timesTwoPower: self precision negated - 1) * radix
-            * ((self fromNumber: radix) timesTwoPower: self emax - 1)
+    _radix := (self fromNumber: radix).
+    ^ ((self fromNumber: 1) -
+            (_radix timesTwoPower: self precision negated - 1)) * radix
+            * (_radix timesTwoPower: self emax - 1)
 
     "
-     Float fmax    
+     Float fmax      
      ShortFloat fmax 
      LongFloat fmax  
     "
+
+    "Modified (comment): / 16-11-2016 / 23:12:36 / cg"
 !
 
 fmin
@@ -1190,7 +1193,6 @@
 ! !
 
 
-
 !LimitedPrecisionReal methodsFor:'printing & storing'!
 
 printOn:aStream
@@ -1261,7 +1263,6 @@
    ^ 0
 ! !
 
-
 !LimitedPrecisionReal methodsFor:'testing'!
 
 isFinite