[Number] pos | Manual

[Number] pos

Returns a boolean indicating wether the number is positive. This message will return a boolean object 'True' if the recipient is positive and 'False' otherwise.

 hope := 0.1.
 ( hope pos ) ifTrue: { Pen write: 'Still a little hope for humanity'. }.

 The example above will print the message because hope is higher than 0.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.