ShortFloat.st
changeset 24964 0236232a98e1
parent 24953 13bc1e8b12ab
child 24975 fdf3a5b2f6b6
--- a/ShortFloat.st	Sun Nov 24 11:28:20 2019 +0100
+++ b/ShortFloat.st	Sun Nov 24 16:13:17 2019 +0100
@@ -511,6 +511,13 @@
     ^ E
 !
 
+eBias
+    "Answer the exponent's bias; 
+     that is the offset of the zero exponent when stored"
+
+    ^ 127
+!
+
 emax
     "Answer the maximum exponent for this representation."
 
@@ -1951,7 +1958,7 @@
 !ShortFloat methodsFor:'special access'!
 
 exponent
-    "extract a normalized float's exponent.
+    "extract a normalized float's (unbiased) exponent.
      The returned value depends on the float-representation of
      the underlying machine and is therefore highly unportable.
      This is not for general use.