To store a number that contains no decimal places.
If you want to store a number that contains no decimal places and is greater than -32,768 and smaller than 32,767, use the short data type.
If you need to store numbers with no decimal places but with values larger or smaller than short allows, use the integer or long data types.
Comments
Leave a comment