[Newbies] Arithmetic operators

cdrick cdrick65 at gmail.com
Sun Feb 10 20:23:09 UTC 2008


Hi,

asFloat, asInteger, rounded, truncated...

In your case I guess asFloat...

Also, in your operation that lead to a fraction, if you declare a
number as a float (but smalltalk way, you write it), the evalutaion
will result in a float...

(1999/20.00)  "print it"  instead of  (1999/20.00)

so (item value / 100.00)  for instance...

Cheers,
Cédrick


More information about the Beginners mailing list