Upload
william-parrish
View
214
Download
0
Embed Size (px)
DESCRIPTION
5.1-2 p 155 expressiontypevalue 19/3int6 (int)71.7-2*3int65 (7+2.3)*3 (7%3)+(int) (int) f ((long)7/2)*1.1
Citation preview
5.1-2 p 155
expression type value
19/3
(int)71.7-2*3
(7+2.3)*3
(7%3)+(int)18.6
2+(int)1.9-2.3f
((long)7/2)*1.1
5.1-2 p 155
expression type value
19/3 int 6
(int)71.7-2*3
(7+2.3)*3
(7%3)+(int)18.6
2+(int)1.9-2.3f
((long)7/2)*1.1
5.1-2 p 155
expression type value
19/3 int 6
(int)71.7-2*3 int 65
(7+2.3)*3
(7%3)+(int)18.6
2+(int)1.9-2.3f
((long)7/2)*1.1
5.1-2 p 155
expression type value
19/3 int 6
(int)71.7-2*3 int 65
(7+2.3)*3 double 27.9*
(7%3)+(int)18.6
2+(int)1.9-2.3f
((long)7/2)*1.1
*actually: 27.900000000000002
5.1-2 p 155
expression type value
19/3 int 6
(int)71.7-2*3 int 65
(7+2.3)*3 double 27.9
(7%3)+(int)18.6 int 19
2+(int)1.9-2.3f
((long)7/2)*1.1
5.1-2 p 155
expression type value
19/3 int 6
(int)71.7-2*3 int 65
(7+2.3)*3 double 27.9
(7%3)+(int)18.6 int 19
2+(int)1.9-2.3f float 0.7*
((long)7/2)*1.1
*actually: 0.70000005
5.1-2 p 155
expression type value
19/3 int 6
(int)71.7-2*3 int 65
(7+2.3)*3 double 27.9
(7%3)+(int)18.6 int 19
2+(int)1.9-2.3f float 0.7
((long)7/2)*1.1 double 3.3*
*actually: 3.3000000000000003
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4)
Math.abs(7-10*2)
(int)(Math.PI*2)
Math.round(17/3.0f)
Math.sqrt(Math.abs(-3)+22)
Math.pow(3,Math.pow(Math.sqrt(4.0),2))
Math.cos(Math.PI)
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4) double 6.8
Math.abs(7-10*2)
(int)(Math.PI*2)
Math.round(17/3.0f)
Math.sqrt(Math.abs(-3)+22)
Math.pow(3,Math.pow(Math.sqrt(4.0),2))
Math.cos(Math.PI)
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4) double 6.8
Math.abs(7-10*2) int 13
(int)(Math.PI*2)
Math.round(17/3.0f)
Math.sqrt(Math.abs(-3)+22)
Math.pow(3,Math.pow(Math.sqrt(4.0),2))
Math.cos(Math.PI)
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4) double 6.8
Math.abs(7-10*2) int 13
(int)(Math.PI*2) int 6
Math.round(17/3.0f)
Math.sqrt(Math.abs(-3)+22)
Math.pow(3,Math.pow(Math.sqrt(4.0),2))
Math.cos(Math.PI)
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4) double 6.8
Math.abs(7-10*2) int 13
(int)(Math.PI*2) int 6
Math.round(17/3.0f) int 6
Math.sqrt(Math.abs(-3)+22)
Math.pow(3,Math.pow(Math.sqrt(4.0),2))
Math.cos(Math.PI)
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4) double 6.8
Math.abs(7-10*2) int 13
(int)(Math.PI*2) int 6
Math.round(17/3.0f) int 6
Math.sqrt(Math.abs(-3)+22) double 5.0
Math.pow(3,Math.pow(Math.sqrt(4.0),2))
Math.cos(Math.PI)
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4) double 6.8
Math.abs(7-10*2) int 13
(int)(Math.PI*2) int 6
Math.round(17/3.0f) int 6
Math.sqrt(Math.abs(-3)+22) double 5.0
Math.pow(3,Math.pow(Math.sqrt(4.0),2)) double 34= 81.0
Math.cos(Math.PI)
5.6 p 155expression type value
Math.abs(-3.4)+Math.abs(3.4) double 6.8
Math.abs(7-10*2) int 13
(int)(Math.PI*2) int 6
Math.round(17/3.0f) int 6
Math.sqrt(Math.abs(-3)+22) double 5.0
Math.pow(3,Math.pow(Math.sqrt(4.0),2)) double 34= 81.0
Math.cos(Math.PI) double -1.0