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 mass in grams of 1.73 moles CaH2
Which formulas represent one ionic compound and one molecular compound?
A 10.0-milliliter sample of NaOH(aq) is neutralized by 40.0 milliliters of 0.50 M HCl. What is the molarity of the NaOH(aq)?
what are the differences between a trumpet and trombone?
how would I calculate the X from a known velocity when launching a ball off a table?
Which one of the following terms is most closely associated with interjections? A. Action B. Emotion C. Qualification D. Description
a stone is dropped from the top of 50 m high tower simultaneously another stone is thrown upward with a speed of 20 m/s . calculate the time at which both the s
what is a 'dead heat'? plz... need help
Which one of the following terms is most closely associated with interjections? A. Action B. Emotion C. Qualification D. Description
Which formulas represent one ionic compound and one molecular compound?