Skip to content

Commit d6cc70c

Browse files
committed
fixed math formatting in 3.1
1 parent 33e6cc3 commit d6cc70c

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)