Search code examples
typesdoubleprogramming-languages

Double and Float size


Is there any language in which a type named double occupies less space than the type name float?


Solution

  • I doubt it. The name double refers to the precision. It means that it has twice the precision as a float. Storing more precision requires more space.