Skip to content

Commit 951fb9a

Browse files
authored
Merge pull request #234 from habibasorour/issue_233_math
Issue 233 fixed: math in 3.1
2 parents 33e6cc3 + d6cc70c commit 951fb9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/ch3_javadatatypes.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public class TempConv {
277277
</p>
278278

279279
<p>
280-
The general rule in Java is that you must decide what kind of an object your variable is going to reference and then you must declare that variable before you use it. In our temperature converter, the calculation (fahr - 32) * 5.0/9.0 works correctly because 5.0 and 9.0 are treated as double values, preventing the integer division that would occur if we had written 5/9, which would result in 0.
280+
The general rule in Java is that you must decide what kind of an object your variable is going to reference and then you must declare that variable before you use it. In our temperature converter, the calculation <c>(fahr - 32) * 5.0/9.0</c> works correctly because 5.0 and 9.0 are treated as double values, preventing the integer division that would occur if we had written <c>5/9</c>, which would result in 0.
281281
</p>
282282
</subsection>
283283
</section>

0 commit comments

Comments
 (0)