Ask
your own question, for FREE!
Computer Science
9 Online
What is the value of the variable? double dNum = (double)10/3;
Still Need Help?
Join the QuestionCove community and study together with friends!
So this is 3.33333?
3.3333333333333335 (it rounds up towards the end, if it goes on into infinity)
ok
so what about his one since its the same one What is the value of the variable? double dNum = (double)(10/3);
3.0
Still Need Help?
Join the QuestionCove community and study together with friends!
So how come this one is different?
It's being isolated by the parenthesis, turning it into a int. then back to a double adding the .0 or something to that extent
ohhh ok
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Kimmee1001:
Who or what is ultimately responsible for Romeo and Juliet's deaths?
EdwinJsHispanic:
is it normal to have high expectations, like expecting your partner to have time
gelphielvr:
Advice for cramming 70 vocab terms each week? Taking med term this year and we have to memorize about 70+ vocab terms per week and im having trouble studyin
EdwinJsHispanic:
I lowk need help deciding what I should write/type on this essay about why teache
GRIZZLEY19:
Let me know what y'all think about the story Image waking up and seeing a family in the dark.
VERNEISH:
Two objects are moving along separate linear paths where each path is described by position, d, and time, t.
9 hours ago
1 Reply
0 Medals
1 day ago
4 Replies
1 Medal
1 day ago
4 Replies
0 Medals
14 hours ago
3 Replies
0 Medals
21 hours ago
22 Replies
6 Medals
1 week ago
1 Reply
0 Medals