kbridges1663 kbridges1663
  • 25-11-2020
  • Computers and Technology
contestada

Assume that d is a double variable. Write an if statement that assigns d to the int variable i if the value in d is not larger than the maximum value for an int.

Respuesta :

kastinm8071
kastinm8071 kastinm8071
  • 26-11-2020

Answer:

That's because the value has reached the size limit of the int data type. ... you should use long rather than int , because long can store much larger numbers than int . If ... In other words, a float or double variable can't accurately represent 0.1 . ... If you're using Java to measure the size of your house, you'd need an electron ...

Explanation:

Answer Link

Otras preguntas

What is the sum of x+y when x = –9.1 and y = 5.6? a. –14.7 b. –3.5 c. 3.5 d. 14.7
Which is an example of secession? A) Adding states to the union, B) Taking a state out of the union, C) Allowing slaves to participate in government, D) None of
What caused feudalism to decline? 1.Because trade increased, cities grew, and a middle class was created, the system was no longer necessary. 2.As trade increas
how do write 804,006 in word form
A sentence for old regime
To which subsets of real numbers does the number -22 belong? Choose all that apply. a. Whole Numbers b. Rational Numbers c. Integers d. Irrational Numbers e.
what does a variable allow you to do that you couldn't do before
Is 4/7 and 20/35 equivalent ratios?
What is the waste product of photosynthesis
How many cotyledons would be found in a flowering plant with nine petals on each flower and long leaves with parallel leaf veins? a. Three b. Zero c. Two d.