Home Segments Index Top Previous Next

62: Mainline

The // division message always produces an integer result, as in the following illustrations:

Workspace
Transcript show: (22.0 / 7.0) printString.  Transcript cr. 
Transcript show: (22.0 // 7.0) printString. Transcript cr. 
Transcript show: (22 / 7) printString.      Transcript cr. 
Transcript show: (22 // 7) printString.     Transcript cr. 
Transcript 
3.14285714 
3 
22/7 
3