34,333
edits
Changes
→Performing Ruby Arithmetic using Operators
</pre>
In the above example sthe the result as been rounded down to the nearest whole number. On the otehr other hand, if we express one of the operands as a float, we get a more accurate answer:
<pre>