Ask
your own question, for FREE!
Computer Science
28 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
Demon25:
For a hoco proposal with a cheerleader and football player, what else should be a
Breathless:
TOC: "MGF any confirmation on the commander? we require confirmation as soon as[radio static].
EdwinJsHispanic:
I wrote something that I don't know if I want it as a poem or song, Please let me know on yours thoughts about it, I'm still doing this! "Broken promises an
thehearken:
hi um I don't know if this is the right section for this, but can someone go over my poem and tell me if its good enough to give my English professor for a
heartlessprophet:
Aye what's 19z%u00f74p=9u03c0 my teacher thinking of impossible questions for us
kippppp:
does anyone have any good tips for writing stories? i'm trying to write a dnd campaign but i'm not that great of a writer yet.
GRIZZLEY19:
Y'all let me know what y'all think about this beat I made I took me like a hour maybe rate it 0/10 https://drive.
Ultrilliam:
Welcome to the 10th Anniversary Update! (Part 2) Sorry this one passed the date a
Twaylor:
was walking downtown and my adhd brain wanted to make some (rock?) lyrics: There'
1 hour ago
9 Replies
0 Medals
2 days ago
3 Replies
0 Medals
1 day ago
3 Replies
0 Medals
3 days ago
5 Replies
3 Medals
3 days ago
1 Reply
0 Medals
3 days ago
11 Replies
2 Medals
13 minutes ago
3 Replies
0 Medals
1 day ago
23 Replies
8 Medals
5 days ago
6 Replies
0 Medals