#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Mon, 10 Jun 2019 22:01:32 +0200
changeset 24330 a06e1fba915a
parent 24329 a430bb32eed2
child 24331 ae549620c66c
#FEATURE by cg class: ShortFloat added: #isZero
ShortFloat.st
--- a/ShortFloat.st	Mon Jun 10 22:01:21 2019 +0200
+++ b/ShortFloat.st	Mon Jun 10 22:01:32 2019 +0200
@@ -2065,6 +2065,14 @@
     "
 !
 
+isZero
+    "return true, if the receiver is zero"
+
+    ^ self = 0.0
+
+    "Created: / 10-06-2019 / 21:59:09 / Claus Gittinger"
+!
+
 negative
     "return true if the receiver is less than zero.
      -0.0 is positive for now."