Computer Science for IGCSE & O level - Programming (Section 5 - No. 48)

Which data type would be most suitable for representing a price that might contain decimal places?
Integer
String
Boolean
Double/Real

Explanation

Double or Real can store decimal values.

Comments (0)

Advertisement