Login
Remember
Register
Questions
Hot!
Categories
Ask a Question
Ask a Question
float a = 64.2 double b = 64.2 double c = (double)a What does c = ?
0
votes
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
float a = 64.2
double b = 64.2
double c = (double)a
What does c = ?
Facebook
Twitter
LinkedIn
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
1
Answer
0
votes
answered
Sep 25, 2022
by
iskralawrence
(
773k
points)
Best answer
We can't say.
According to IEEE 754, a = 0x42806666 and b =
0x40500ccccccccccd.
After executing and checking the value of c, we get c = 0x40500cccc0000000, which isn't what we expected.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
Related questions
0
votes
1
answer
When the diameter of a wire is doubled, its resistance becomes: (a) double (b) four times (c) one-half (d) one-fourth
asked
Oct 26, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
Using LPT priority would result in what sequence for Jobs A, B, C, and D if their process times are 4, 6, 5, and 2 respectively?
asked
Oct 8, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
An animal shelter has a ratio of dogs to cats that's 3:2. If there are 30 cats at the shelter, how many dogs are there? A. 90 B. 15 C. 45 D. 20
asked
Nov 3, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
In the House, the ________ assigns a bill to a committee. Question 2 options: A) presiding officer B) speaker C) minority leader D) Vice President
asked
Nov 2, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
Which country labeled on the map above has the largest population in Europe? A. 2 B. 3 C. 5 D. 6
asked
Nov 1, 2022
in
General Knowledge
by
monikakim
(
557k
points)
...