Emily is writing a program to calculate the area of a circle. Which data type should she use to store the calculated result for better precision?

  • decimal
  • double
  • float
  • int
Emily should use the 'double' data type for better precision in calculations involving decimal numbers, such as the area of a circle. 'Double' provides a higher level of precision compared to 'float' and is suitable for scientific and engineering calculations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *